pub struct ImportFrom<'a> {
pub module: Option<NameOrAttribute<'a>>,
pub names: ImportNames<'a>,
pub relative: Vec<Dot<'a>>,
pub lpar: Option<LeftParen<'a>>,
pub rpar: Option<RightParen<'a>>,
pub semicolon: Option<Semicolon<'a>>,
pub whitespace_after_from: SimpleWhitespace<'a>,
pub whitespace_before_import: SimpleWhitespace<'a>,
pub whitespace_after_import: SimpleWhitespace<'a>,
}
Fields§
§module: Option<NameOrAttribute<'a>>
§names: ImportNames<'a>
§relative: Vec<Dot<'a>>
§lpar: Option<LeftParen<'a>>
§rpar: Option<RightParen<'a>>
§semicolon: Option<Semicolon<'a>>
§whitespace_after_from: SimpleWhitespace<'a>
§whitespace_before_import: SimpleWhitespace<'a>
§whitespace_after_import: SimpleWhitespace<'a>
Trait Implementations§
Source§impl<'a> Clone for ImportFrom<'a>
impl<'a> Clone for ImportFrom<'a>
Source§fn clone(&self) -> ImportFrom<'a>
fn clone(&self) -> ImportFrom<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Codegen<'a> for ImportFrom<'a>
impl<'a> Codegen<'a> for ImportFrom<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for ImportFrom<'a>
impl<'a> Debug for ImportFrom<'a>
Source§impl<'a> PartialEq for ImportFrom<'a>
impl<'a> PartialEq for ImportFrom<'a>
impl<'a> Eq for ImportFrom<'a>
impl<'a> StructuralPartialEq for ImportFrom<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImportFrom<'a>
impl<'a> RefUnwindSafe for ImportFrom<'a>
impl<'a> Send for ImportFrom<'a>
impl<'a> Sync for ImportFrom<'a>
impl<'a> Unpin for ImportFrom<'a>
impl<'a> UnwindSafe for ImportFrom<'a>
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