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§
source§impl Clone for UseSegmentKind
impl Clone for UseSegmentKind
source§fn clone(&self) -> UseSegmentKind
fn clone(&self) -> UseSegmentKind
Returns a copy 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 UseSegmentKind
impl Debug for UseSegmentKind
source§impl Display for UseSegmentKind
impl Display for UseSegmentKind
source§impl Hash for UseSegmentKind
impl Hash for UseSegmentKind
source§impl PartialEq<UseSegmentKind> for UseSegmentKind
impl PartialEq<UseSegmentKind> for UseSegmentKind
source§fn 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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