Enum safina_select::OptionAbc [−][src]
Variants
Implementations
impl<T> OptionAbc<T, T, T>
[src]
impl<A, B, C> OptionAbc<A, B, C>
[src]
pub fn as_ref(&self) -> OptionAbc<&A, &B, &C>
[src]
pub fn a(&self) -> Option<&A>
[src]
pub fn b(&self) -> Option<&B>
[src]
pub fn c(&self) -> Option<&C>
[src]
impl<A: Debug, B: Debug, C: Debug> OptionAbc<A, B, C>
[src]
pub fn unwrap_a(self) -> A
[src]
Panics
Panics if self
is not an OptionABC::A
.
pub fn unwrap_b(self) -> B
[src]
Panics
Panics if self
is not an OptionABC::B
.
pub fn unwrap_c(self) -> C
[src]
Panics
Panics if self
is not an OptionABC::C
.
Trait Implementations
impl<A: Clone, B: Clone, C: Clone> Clone for OptionAbc<A, B, C>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug, B: Debug, C: Debug> Debug for OptionAbc<A, B, C>
[src]
impl<A: Display, B: Display, C: Display> Display for OptionAbc<A, B, C>
[src]
impl<A: PartialEq, B: PartialEq, C: PartialEq> Eq for OptionAbc<A, B, C>
[src]
impl<A: PartialEq, B: PartialEq, C: PartialEq> PartialEq<OptionAbc<A, B, C>> for OptionAbc<A, B, C>
[src]
Auto Trait Implementations
impl<A, B, C> RefUnwindSafe for OptionAbc<A, B, C> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
impl<A, B, C> Send for OptionAbc<A, B, C> where
A: Send,
B: Send,
C: Send,
A: Send,
B: Send,
C: Send,
impl<A, B, C> Sync for OptionAbc<A, B, C> where
A: Sync,
B: Sync,
C: Sync,
A: Sync,
B: Sync,
C: Sync,
impl<A, B, C> Unpin for OptionAbc<A, B, C> where
A: Unpin,
B: Unpin,
C: Unpin,
A: Unpin,
B: Unpin,
C: Unpin,
impl<A, B, C> UnwindSafe for OptionAbc<A, B, C> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,