pub enum ImportDeclaration<'a> {
SimpleType(Cow<'a, str>),
TypeOnDemand(Cow<'a, str>),
SingleStatic(Cow<'a, str>),
StaticOnDemand(Cow<'a, str>),
}
Expand description
ImportDeclaration 枚举表示Java中的导入声明。
Variants§
SimpleType(Cow<'a, str>)
单类型导入声明,参数是导入的类或接口的名称。
TypeOnDemand(Cow<'a, str>)
需求类型导入声明,参数是导入的包、类或接口的名称(路径)。
SingleStatic(Cow<'a, str>)
单静态导入声明,参数是导入的类或接口的名称 + 导入的静态成员的名称。
StaticOnDemand(Cow<'a, str>)
静态需求导入声明,参数是导入的类或接口的名称。
Trait Implementations§
Source§impl<'a> Debug for ImportDeclaration<'a>
impl<'a> Debug for ImportDeclaration<'a>
Auto Trait Implementations§
impl<'a> Freeze for ImportDeclaration<'a>
impl<'a> RefUnwindSafe for ImportDeclaration<'a>
impl<'a> Send for ImportDeclaration<'a>
impl<'a> Sync for ImportDeclaration<'a>
impl<'a> Unpin for ImportDeclaration<'a>
impl<'a> UnwindSafe for ImportDeclaration<'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