pub struct LazyImportFrom<'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_lazy: SimpleWhitespace<'a>,
pub whitespace_after_from: SimpleWhitespace<'a>,
pub whitespace_before_import: SimpleWhitespace<'a>,
pub whitespace_after_import: SimpleWhitespace<'a>,
}Expand description
A lazy from x import y statement (PEP 810).
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_lazy: SimpleWhitespace<'a>§whitespace_after_from: SimpleWhitespace<'a>§whitespace_before_import: SimpleWhitespace<'a>§whitespace_after_import: SimpleWhitespace<'a>Trait Implementations§
Source§impl<'a> Clone for LazyImportFrom<'a>
impl<'a> Clone for LazyImportFrom<'a>
Source§fn clone(&self) -> LazyImportFrom<'a>
fn clone(&self) -> LazyImportFrom<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LazyImportFrom<'a>
impl<'a> Codegen<'a> for LazyImportFrom<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for LazyImportFrom<'a>
impl<'a> Debug for LazyImportFrom<'a>
impl<'a> Eq for LazyImportFrom<'a>
Source§impl<'a> PartialEq for LazyImportFrom<'a>
impl<'a> PartialEq for LazyImportFrom<'a>
impl<'a> StructuralPartialEq for LazyImportFrom<'a>
Auto Trait Implementations§
impl<'a> Freeze for LazyImportFrom<'a>
impl<'a> RefUnwindSafe for LazyImportFrom<'a>
impl<'a> Send for LazyImportFrom<'a>
impl<'a> Sync for LazyImportFrom<'a>
impl<'a> Unpin for LazyImportFrom<'a>
impl<'a> UnsafeUnpin for LazyImportFrom<'a>
impl<'a> UnwindSafe for LazyImportFrom<'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