pub struct CustomSwitch(/* private fields */);Implementations§
Source§impl CustomSwitch
impl CustomSwitch
pub fn all_users() -> Self
pub fn current_user() -> Self
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<'de> Deserialize<'de> for CustomSwitch
impl<'de> Deserialize<'de> for CustomSwitch
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 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<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime CustomSwitchwhere
&'__deriveMoreLifetime InstallerSwitch<2048>: IntoIterator,
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime CustomSwitchwhere
&'__deriveMoreLifetime InstallerSwitch<2048>: IntoIterator,
Source§type Item = <&'__deriveMoreLifetime InstallerSwitch<2048> as IntoIterator>::Item
type Item = <&'__deriveMoreLifetime InstallerSwitch<2048> as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <&'__deriveMoreLifetime InstallerSwitch<2048> as IntoIterator>::IntoIter
type IntoIter = <&'__deriveMoreLifetime InstallerSwitch<2048> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut CustomSwitchwhere
&'__deriveMoreLifetime mut InstallerSwitch<2048>: IntoIterator,
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut CustomSwitchwhere
&'__deriveMoreLifetime mut InstallerSwitch<2048>: IntoIterator,
Source§type Item = <&'__deriveMoreLifetime mut InstallerSwitch<2048> as IntoIterator>::Item
type Item = <&'__deriveMoreLifetime mut InstallerSwitch<2048> as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <&'__deriveMoreLifetime mut InstallerSwitch<2048> as IntoIterator>::IntoIter
type IntoIter = <&'__deriveMoreLifetime mut InstallerSwitch<2048> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl IntoIterator for CustomSwitchwhere
InstallerSwitch<2048>: IntoIterator,
impl IntoIterator for CustomSwitchwhere
InstallerSwitch<2048>: IntoIterator,
Source§type Item = <InstallerSwitch<2048> as IntoIterator>::Item
type Item = <InstallerSwitch<2048> as IntoIterator>::Item
The type of the elements being iterated over.
Source§type IntoIter = <InstallerSwitch<2048> as IntoIterator>::IntoIter
type IntoIter = <InstallerSwitch<2048> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
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
Source§impl Serialize for CustomSwitchwhere
Self: Display,
impl Serialize for CustomSwitchwhere
Self: Display,
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