Struct eso::An [−][src]
#[repr(transparent)]pub struct An<A>(pub A);
Expand description
A value of type A
that exists.
See the notes about Maybe
for a deeper explanation.
Trait Implementations
impl<A> Maybe for An<A>
[src]
impl<A> Maybe for An<A>
[src]type Inner = A
type Inner = A
The type whose presence or absence is in question
fn unwrap_try<F, T>(self, f: F) -> Result<T, Self> where
F: FnOnce(Self::Inner) -> Result<T, A>,
[src]
fn unwrap_try<F, T>(self, f: F) -> Result<T, Self> where
F: FnOnce(Self::Inner) -> Result<T, A>,
[src]Run a function on the inner value that either succeeds or gives back the inner value Read more
Auto Trait Implementations
impl<A> RefUnwindSafe for An<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for An<A> where
A: Send,
A: Send,
impl<A> Sync for An<A> where
A: Sync,
A: Sync,
impl<A> Unpin for An<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for An<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<'a, T, R> Borrow<'a, Cow<'a, R>> for T where
T: Borrow<R>,
R: ToOwned<Owned = T> + ?Sized,
[src]
impl<'a, T, R> Borrow<'a, Cow<'a, R>> for T where
T: Borrow<R>,
R: ToOwned<Owned = T> + ?Sized,
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<'a, R, MX> MBorrow<'a, R> for MX where
R: 'a,
MX: Maybe,
<MX as Maybe>::Inner: Borrow<'a, R>,
[src]
R: 'a,
MX: Maybe,
<MX as Maybe>::Inner: Borrow<'a, R>,
impl<T, MX> MUnwrapInto<T> for MX where
MX: Maybe,
<MX as Maybe>::Inner: Into<T>,
[src]
MX: Maybe,
<MX as Maybe>::Inner: Into<T>,