Struct eso::No [−][src]
pub struct No<A> { /* fields omitted */ }
Expand description
A value of type A
that cannot exist.
See the notes about Maybe
for a deeper explanation.
Trait Implementations
impl<A> Impossible for No<A>
[src]
impl<A> Impossible for No<A>
[src]impl<A> Maybe for No<A>
[src]
impl<A> Maybe for No<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
impl<A> RefUnwindSafe for No<A>
[src]
SAFETY: Since you can’t get hold of a No<A>
anyway, and therefore can’t ever
have a reference to one (in safe code), any code path where you hold one
across a potential panic is dead and won’t ever execute.
impl<A> Send for No<A>
[src]
SAFETY: Since you can’t get hold of a No<A>
anyway, it doesn’t matter at all
whether or not you try to send one to another thread.
impl<A> Sync for No<A>
[src]
SAFETY: Since you can’t get hold of a No<A>
anyway, and therefore can’t ever
have a reference to one (in safe code), it doesn’t matter at all, how many
threads you can’t ever have those references on.
impl<A> Unpin for No<A>
[src]
SAFETY: Since you can’t get hold of a No<A>
anyway, whatever detrimental
effects might arise from unpinning it can never happen since it’s not there
in the first place, and the code unpinning it will never execute.
impl<A> UnwindSafe for No<A>
[src]
SAFETY: Since you can’t get hold of a No<A>
anyway, any code path where you
hold one across a potential panic is dead and will never execute.
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>,