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 指令
Fields§
§path: String导入路径
is_static: bool是否为静态导入
alias: Option<String>别名
is_global: bool全局
span: Range<usize>源码位置
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 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