Struct libcst_native::ImportFrom
source · 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 copy 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>
source§fn eq(&self, other: &ImportFrom<'a>) -> bool
fn eq(&self, other: &ImportFrom<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> Eq for ImportFrom<'a>
impl<'a> StructuralPartialEq for ImportFrom<'a>
Auto Trait Implementations§
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