pub struct SourceItemOrderingTraitAssocItemKinds(Vec<SourceItemOrderingTraitAssocItemKind>);
Expand description
Represents the order in which associated trait items should be ordered.
The reason to wrap a Vec
in a newtype is to be able to implement
Deserialize
. Implementing Deserialize
allows for implementing checks
on configuration completeness at the time of loading the clippy config,
letting the user know if there’s any issues with the config (e.g. not
listing all item kinds that should be sorted).
Tuple Fields§
§0: Vec<SourceItemOrderingTraitAssocItemKind>
Implementations§
Source§impl SourceItemOrderingTraitAssocItemKinds
impl SourceItemOrderingTraitAssocItemKinds
pub fn index_of( &self, item: &SourceItemOrderingTraitAssocItemKind, ) -> Option<usize>
Trait Implementations§
Source§impl Clone for SourceItemOrderingTraitAssocItemKinds
impl Clone for SourceItemOrderingTraitAssocItemKinds
Source§fn clone(&self) -> SourceItemOrderingTraitAssocItemKinds
fn clone(&self) -> SourceItemOrderingTraitAssocItemKinds
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<'de> Deserialize<'de> for SourceItemOrderingTraitAssocItemKinds
impl<'de> Deserialize<'de> for SourceItemOrderingTraitAssocItemKinds
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<T> for SourceItemOrderingTraitAssocItemKinds
impl<T> From<T> for SourceItemOrderingTraitAssocItemKinds
Auto Trait Implementations§
impl Freeze for SourceItemOrderingTraitAssocItemKinds
impl RefUnwindSafe for SourceItemOrderingTraitAssocItemKinds
impl Send for SourceItemOrderingTraitAssocItemKinds
impl Sync for SourceItemOrderingTraitAssocItemKinds
impl Unpin for SourceItemOrderingTraitAssocItemKinds
impl UnwindSafe for SourceItemOrderingTraitAssocItemKinds
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 moreimpl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 24 bytes