pub struct LazyImport<'a> {
pub names: Vec<ImportAlias<'a>>,
pub semicolon: Option<Semicolon<'a>>,
pub whitespace_after_lazy: SimpleWhitespace<'a>,
pub whitespace_after_import: SimpleWhitespace<'a>,
}Expand description
A lazy import x statement (PEP 810).
Fields§
§names: Vec<ImportAlias<'a>>§semicolon: Option<Semicolon<'a>>§whitespace_after_lazy: SimpleWhitespace<'a>§whitespace_after_import: SimpleWhitespace<'a>Trait Implementations§
Source§impl<'a> Clone for LazyImport<'a>
impl<'a> Clone for LazyImport<'a>
Source§fn clone(&self) -> LazyImport<'a>
fn clone(&self) -> LazyImport<'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 LazyImport<'a>
impl<'a> Codegen<'a> for LazyImport<'a>
fn codegen(&self, state: &mut CodegenState<'a>)
Source§impl<'a> Debug for LazyImport<'a>
impl<'a> Debug for LazyImport<'a>
impl<'a> Eq for LazyImport<'a>
Source§impl<'a> PartialEq for LazyImport<'a>
impl<'a> PartialEq for LazyImport<'a>
impl<'a> StructuralPartialEq for LazyImport<'a>
Auto Trait Implementations§
impl<'a> Freeze for LazyImport<'a>
impl<'a> RefUnwindSafe for LazyImport<'a>
impl<'a> Send for LazyImport<'a>
impl<'a> Sync for LazyImport<'a>
impl<'a> Unpin for LazyImport<'a>
impl<'a> UnsafeUnpin for LazyImport<'a>
impl<'a> UnwindSafe for LazyImport<'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