Enum rustfmt_nightly::imports::UseSegmentKind
source · pub(crate) enum UseSegmentKind {
Ident(String, Option<String>),
Slf(Option<String>),
Super(Option<String>),
Crate(Option<String>),
Glob,
List(Vec<UseTree>),
}
Variants
Ident(String, Option<String>)
Slf(Option<String>)
Super(Option<String>)
Crate(Option<String>)
Glob
List(Vec<UseTree>)
Trait Implementations
sourceimpl Clone for UseSegmentKind
impl Clone for UseSegmentKind
sourcefn clone(&self) -> UseSegmentKind
fn clone(&self) -> UseSegmentKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UseSegmentKind
impl Debug for UseSegmentKind
sourceimpl Display for UseSegmentKind
impl Display for UseSegmentKind
sourceimpl Hash for UseSegmentKind
impl Hash for UseSegmentKind
sourceimpl PartialEq<UseSegmentKind> for UseSegmentKind
impl PartialEq<UseSegmentKind> for UseSegmentKind
sourcefn eq(&self, other: &UseSegmentKind) -> bool
fn eq(&self, other: &UseSegmentKind) -> bool
impl Eq for UseSegmentKind
impl StructuralEq for UseSegmentKind
impl StructuralPartialEq for UseSegmentKind
Auto Trait Implementations
impl !RefUnwindSafe for UseSegmentKind
impl !Send for UseSegmentKind
impl !Sync for UseSegmentKind
impl Unpin for UseSegmentKind
impl !UnwindSafe for UseSegmentKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
Ident
: 48 bytesSlf
: 24 bytesSuper
: 24 bytesCrate
: 24 bytesGlob
: 0 bytesList
: 24 bytes