pub enum SGroups {
Single(SGroupType),
Multiple(Vec<SGroupType>),
}Variants§
Single(SGroupType)
Multiple(Vec<SGroupType>)
Implementations§
Source§impl SGroups
impl SGroups
Sourcepub const fn is_single(&self) -> bool
pub const fn is_single(&self) -> bool
Returns true if the enum is SGroups::Single otherwise false
Sourcepub const fn is_multiple(&self) -> bool
pub const fn is_multiple(&self) -> bool
Returns true if the enum is SGroups::Multiple otherwise false
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SGroups
impl<'de> Deserialize<'de> for SGroups
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<const N: usize> From<[SGroupType; N]> for SGroups
impl<const N: usize> From<[SGroupType; N]> for SGroups
Source§fn from(groups: [SGroupType; N]) -> Self
fn from(groups: [SGroupType; N]) -> Self
Converts to this type from the input type.
Source§impl From<Vec<SGroupType>> for SGroups
impl From<Vec<SGroupType>> for SGroups
Source§fn from(groups: Vec<SGroupType>) -> Self
fn from(groups: Vec<SGroupType>) -> Self
Converts to this type from the input type.
Source§impl FromIterator<String> for SGroups
impl FromIterator<String> for SGroups
impl Eq for SGroups
impl StructuralPartialEq for SGroups
Auto Trait Implementations§
impl Freeze for SGroups
impl RefUnwindSafe for SGroups
impl Send for SGroups
impl Sync for SGroups
impl Unpin for SGroups
impl UnwindSafe for SGroups
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