Expand description
An anonymous module; e.g., just a block.
fn main() {
fn f() {}
{
f();
fn f() {}
}
f();
}
Expand description
Any module with a name.
This could be:
- A normal module – either
mod from_file; or mod from_block { } –
or the crate root (which is conceptually a top-level module).
Note that the crate root’s name will be kw::Empty.
- A trait or an enum (it implicitly contains associated types, methods and variant
constructors).
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>, [src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.