pub struct Use {
pub use_token: Token,
pub from: Token,
pub items: Vec<Token>,
}Expand description
Represents a use statement for importing modules or items in the AST.
A use statement specifies the source module and the items to import.
Fields§
§use_token: TokenThe token representing the use keyword.
from: TokenThe token representing the module or path to import from.
items: Vec<Token>A list of tokens representing the items to import.
Trait Implementations§
impl StructuralPartialEq for Use
Auto Trait Implementations§
impl Freeze for Use
impl RefUnwindSafe for Use
impl Send for Use
impl Sync for Use
impl Unpin for Use
impl UnwindSafe for Use
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more