pub enum SourceItemOrderingTraitAssocItemKind {
Const,
Fn,
Type,
}Variants§
Implementations§
Source§impl SourceItemOrderingTraitAssocItemKind
impl SourceItemOrderingTraitAssocItemKind
pub fn all_variants() -> Vec<Self>
Trait Implementations§
Source§impl Clone for SourceItemOrderingTraitAssocItemKind
impl Clone for SourceItemOrderingTraitAssocItemKind
Source§fn clone(&self) -> SourceItemOrderingTraitAssocItemKind
fn clone(&self) -> SourceItemOrderingTraitAssocItemKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceItemOrderingTraitAssocItemKind
Source§impl Deserialize for SourceItemOrderingTraitAssocItemKind
impl Deserialize for SourceItemOrderingTraitAssocItemKind
Source§fn deserialize(dcx: &DiagCtxt<'_>, value: &Spanned<DeValue<'_>>) -> Option<Self>
fn deserialize(dcx: &DiagCtxt<'_>, value: &Spanned<DeValue<'_>>) -> Option<Self>
Attempt to deserialize the value. Returns
None and raises an error on failure.Source§impl FromDefault<SourceItemOrderingTraitAssocItemKind> for SourceItemOrderingTraitAssocItemKind
impl FromDefault<SourceItemOrderingTraitAssocItemKind> for SourceItemOrderingTraitAssocItemKind
Source§fn from_default(default: SourceItemOrderingTraitAssocItemKind) -> Self
fn from_default(default: SourceItemOrderingTraitAssocItemKind) -> Self
Creates this value from a default value.
Source§fn display_default(
default: SourceItemOrderingTraitAssocItemKind,
) -> impl Display
fn display_default( default: SourceItemOrderingTraitAssocItemKind, ) -> impl Display
Writes the default value to a string.
impl StructuralPartialEq for SourceItemOrderingTraitAssocItemKind
Auto Trait Implementations§
impl DynSend for SourceItemOrderingTraitAssocItemKind
impl DynSync for SourceItemOrderingTraitAssocItemKind
impl Freeze for SourceItemOrderingTraitAssocItemKind
impl RefUnwindSafe for SourceItemOrderingTraitAssocItemKind
impl Send for SourceItemOrderingTraitAssocItemKind
impl Sync for SourceItemOrderingTraitAssocItemKind
impl Unpin for SourceItemOrderingTraitAssocItemKind
impl UnsafeUnpin for SourceItemOrderingTraitAssocItemKind
impl UnwindSafe for SourceItemOrderingTraitAssocItemKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreLayout§
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: 1 byte
Size for each variant:
Const: 0 bytesFn: 0 bytesType: 0 bytes