pub struct UsingDirective {
pub path: String,
pub is_static: bool,
pub alias: Option<String>,
pub is_global: bool,
pub span: Range<usize>,
}Expand description
Using directive.
Represents a using statement used to import types from a namespace or to create aliases.
Supports using, using static, and global using.
Fields§
§path: StringThe namespace or type path being imported.
is_static: boolIndicates if this is a using static directive.
alias: Option<String>An optional alias for the namespace or type (e.g., using Project = MyCompany.Project;).
is_global: boolIndicates if this is a global using directive (C# 10+).
span: Range<usize>Source location of the using directive.
Trait Implementations§
Source§impl Clone for UsingDirective
impl Clone for UsingDirective
Source§fn clone(&self) -> UsingDirective
fn clone(&self) -> UsingDirective
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 UsingDirective
impl Debug for UsingDirective
Source§impl<'de> Deserialize<'de> for UsingDirective
impl<'de> Deserialize<'de> for UsingDirective
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 UsingDirective
impl PartialEq for UsingDirective
Source§impl Serialize for UsingDirective
impl Serialize for UsingDirective
impl StructuralPartialEq for UsingDirective
Auto Trait Implementations§
impl Freeze for UsingDirective
impl RefUnwindSafe for UsingDirective
impl Send for UsingDirective
impl Sync for UsingDirective
impl Unpin for UsingDirective
impl UnsafeUnpin for UsingDirective
impl UnwindSafe for UsingDirective
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