pub struct ImportsDirective {
pub path: String,
pub alias: Option<String>,
pub span: Range<usize>,
}Expand description
Imports directive.
Fields§
§path: StringThe namespace or type path being imported.
alias: Option<String>An optional alias for the namespace or type.
span: Range<usize>Source location of the imports directive.
Trait Implementations§
Source§impl Clone for ImportsDirective
impl Clone for ImportsDirective
Source§fn clone(&self) -> ImportsDirective
fn clone(&self) -> ImportsDirective
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 Debug for ImportsDirective
impl Debug for ImportsDirective
Source§impl<'de> Deserialize<'de> for ImportsDirective
impl<'de> Deserialize<'de> for ImportsDirective
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ImportsDirective
impl PartialEq for ImportsDirective
Source§impl Serialize for ImportsDirective
impl Serialize for ImportsDirective
impl StructuralPartialEq for ImportsDirective
Auto Trait Implementations§
impl Freeze for ImportsDirective
impl RefUnwindSafe for ImportsDirective
impl Send for ImportsDirective
impl Sync for ImportsDirective
impl Unpin for ImportsDirective
impl UnsafeUnpin for ImportsDirective
impl UnwindSafe for ImportsDirective
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