EN | DE

Stage 10.6: Referencing Multiple Items

Multiple items can be referenced in a single module path as so:
use std::f64::consts::{PI,TAU}

To import everything from std::f64::consts, you can use the wildcard * as so:
use std::f64::consts::*

You can also combine it:
use std::{f64::consts::{PI, TAU}, fmt::Debug};

This is equievalent to:
use std::f64::consts::{PI, TAU};
use std::fmt::Debug;

Further information: