pub struct CustomSwitch(/* private fields */);Implementations§
Source§impl CustomSwitch
impl CustomSwitch
pub fn all_users() -> Self
pub fn current_user() -> Self
pub fn iter(&self) -> Iter<'_, CompactString>
Trait Implementations§
Source§impl Clone for CustomSwitch
impl Clone for CustomSwitch
Source§fn clone(&self) -> CustomSwitch
fn clone(&self) -> CustomSwitch
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 CustomSwitch
impl Debug for CustomSwitch
Source§impl Deref for CustomSwitch
impl Deref for CustomSwitch
Source§impl DerefMut for CustomSwitch
impl DerefMut for CustomSwitch
Source§impl Display for CustomSwitch
impl Display for CustomSwitch
Source§impl FromStr for CustomSwitch
impl FromStr for CustomSwitch
Source§impl Hash for CustomSwitch
impl Hash for CustomSwitch
Source§impl<'switch> IntoIterator for &'switch CustomSwitch
impl<'switch> IntoIterator for &'switch CustomSwitch
Source§impl IntoIterator for CustomSwitch
impl IntoIterator for CustomSwitch
Source§impl Ord for CustomSwitch
impl Ord for CustomSwitch
Source§fn cmp(&self, other: &CustomSwitch) -> Ordering
fn cmp(&self, other: &CustomSwitch) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CustomSwitch
impl PartialEq for CustomSwitch
Source§impl PartialOrd for CustomSwitch
impl PartialOrd for CustomSwitch
impl Eq for CustomSwitch
impl StructuralPartialEq for CustomSwitch
Auto Trait Implementations§
impl Freeze for CustomSwitch
impl RefUnwindSafe for CustomSwitch
impl Send for CustomSwitch
impl Sync for CustomSwitch
impl Unpin for CustomSwitch
impl UnwindSafe for CustomSwitch
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<I, C> CompactStringExt for C
impl<I, C> CompactStringExt for C
Source§fn concat_compact(self) -> CompactString
fn concat_compact(self) -> CompactString
Concatenates all the items of a collection into a
CompactString Read moreSource§fn join_compact<S>(self, separator: S) -> CompactString
fn join_compact<S>(self, separator: S) -> CompactString
Joins all the items of a collection, placing a separator between them, forming a
CompactString Read moreSource§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 moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more