pub enum UseAs {
KeepName,
Star,
Name(String),
Prefix(String),
}
Expand description
The as
part of an @use
or @forward
directive.
Variants§
KeepName
A plain @use foo;
.
Star
Include the module contents directly in the scope, @use foo as *;
.
Name(String)
An explicit name, @use foo as bar
.
Prefix(String)
A prefix, @forward foo as foo-*
.
Trait Implementations§
source§impl PartialEq for UseAs
impl PartialEq for UseAs
source§impl PartialOrd for UseAs
impl PartialOrd for UseAs
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for UseAs
impl StructuralEq for UseAs
impl StructuralPartialEq for UseAs
Auto Trait Implementations§
impl RefUnwindSafe for UseAs
impl Send for UseAs
impl Sync for UseAs
impl Unpin for UseAs
impl UnwindSafe for UseAs
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