pub enum SourceItemOrderingWithinModuleItemGroupings {
    All,
    None,
    Custom(Vec<String>),
}Expand description
Describes which specific groupings should have their items ordered alphabetically.
This is separate from defining and enforcing groupings. For example, defining enums are grouped before structs still allows for an enum B to be placed before an enum A. Only when enforcing ordering within the grouping, will it be checked if A is placed before B.
Variants§
All
All groupings should have their items ordered.
None
None of the groupings should have their order checked.
Custom(Vec<String>)
Only the specified groupings should have their order checked.
Implementations§
Source§impl SourceItemOrderingWithinModuleItemGroupings
 
impl SourceItemOrderingWithinModuleItemGroupings
pub fn ordered_within(&self, grouping_name: &String) -> bool
Trait Implementations§
Source§impl Clone for SourceItemOrderingWithinModuleItemGroupings
 
impl Clone for SourceItemOrderingWithinModuleItemGroupings
Source§fn clone(&self) -> SourceItemOrderingWithinModuleItemGroupings
 
fn clone(&self) -> SourceItemOrderingWithinModuleItemGroupings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for SourceItemOrderingWithinModuleItemGroupings
 
impl<'de> Deserialize<'de> for SourceItemOrderingWithinModuleItemGroupings
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>,
Auto Trait Implementations§
impl Freeze for SourceItemOrderingWithinModuleItemGroupings
impl RefUnwindSafe for SourceItemOrderingWithinModuleItemGroupings
impl Send for SourceItemOrderingWithinModuleItemGroupings
impl Sync for SourceItemOrderingWithinModuleItemGroupings
impl Unpin for SourceItemOrderingWithinModuleItemGroupings
impl UnwindSafe for SourceItemOrderingWithinModuleItemGroupings
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
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>
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>
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
Size for each variant:
- All: 0 bytes
- None: 0 bytes
- Custom: 24 bytes