#[non_exhaustive]pub enum UseKind {
Normal,
Function,
Const,
}Expand description
What a use import brings in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Normal
use Foo\Bar — imports a class, interface, trait, or enum.
Function
use function Foo\bar — imports a function.
Const
use const Foo\BAR — imports a constant.
Trait Implementations§
impl Copy for UseKind
impl Eq for UseKind
impl StructuralPartialEq for UseKind
Auto Trait Implementations§
impl Freeze for UseKind
impl RefUnwindSafe for UseKind
impl Send for UseKind
impl Sync for UseKind
impl Unpin for UseKind
impl UnsafeUnpin for UseKind
impl UnwindSafe for UseKind
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