It means to import (“use”) the macros from the crate.
As of Rust 1.30, this syntax is no longer generally needed and you can use the standard use
keyword instead.
Review the macros chapter from the first edition of The Rust Programming Language for more detail.
Related Contents:
- How to write a custom derive macro?
- What is the difference between iter and into_iter?
- How can I include a module from another file from the same project?
- What is this question mark operator about?
- How do I convert a Vector of bytes (u8) to a string?
- How can I build multiple binaries with Cargo?
- How does Rust’s 128-bit integer `i128` work on a 64-bit system?
- What is unwrap in Rust, and what is it used for?
- How do I find the index of an element in an array, vector or slice?
- What’s the difference between self and Self?
- Why does the println! function use an exclamation mark in Rust?
- Is it possible to make a type only movable and not copyable?
- How to define test-only dependencies?
- Need holistic explanation about Rust’s cell and reference counted types
- Is there a way to simplify converting an Option into a Result without a macro?
- How do I match enum values with an integer?
- Is it possible to use `impl Trait` as a function’s return type in a trait definition?
- Lifetimes in Rust
- A local function in Rust
- Why is it discouraged to accept a reference &String, &Vec, or &Box as a function argument?
- Why is the `Sized` bound necessary in this trait?
- What is the easiest way to pad a string with 0 to the left?
- How can I download Rust API docs?
- How do I add days to a Chrono UTC?
- Is it possible to control the size of an array using the type parameter of a generic?
- Why do I need to import a trait to use the methods it defines for a type?
- Understanding the Send trait
- Is it possible to unpack a tuple into function arguments?
- Is it possible to implement methods on type aliases?
- Getting the absolute path from a PathBuf
- Dividing two integers doesn’t print as a decimal number in Rust
- What does “Sized is not implemented” mean?
- How to convert ‘struct’ to ‘&[u8]’?
- What is the difference between `|_| async move {}` and `async move |_| {}`
- How can I read one character from stdin without having to hit enter?
- Why would I implement methods on a trait instead of as part of the trait?
- Why does Drop take &mut self instead of self?
- How to solve “returns a value referencing data owned by the current function” error in Rust? [duplicate]
- Rust can’t find crate
- Read a file and get an array of strings
- Implementing a trait for multiple types at once
- Why is std::rc::Rc not Copy?
- Idiomatic way of assigning a value from an if else condition in Rust
- What is the difference between Rc and RefCell?
- What is the Rust type keyword?
- How do I set environment variables with Cargo?
- How do I implement Ord for a struct?
- How do I use Serde to serialize a HashMap with structs as keys to JSON?
- How can I read a single line from stdin in Rust?
- When should I implement std::convert::From vs std::convert::Into?