Enum kas_theme::MaybeBoxed [−][src]
This is supported on crate feature
stack_dst
only.Expand description
An optionally-owning (boxed) reference
This is related but not identical to Cow
.
Variants
Borrowed(&'a B)
Tuple Fields of Borrowed
0: &'a B
Boxed(Box<B>)
Tuple Fields of Boxed
0: Box<B>
Trait Implementations
Auto Trait Implementations
impl<'a, B: ?Sized> RefUnwindSafe for MaybeBoxed<'a, B> where
B: RefUnwindSafe,
impl<'a, B: ?Sized> Send for MaybeBoxed<'a, B> where
B: Send + Sync,
impl<'a, B: ?Sized> Sync for MaybeBoxed<'a, B> where
B: Sync,
impl<'a, B: ?Sized> Unpin for MaybeBoxed<'a, B>
impl<'a, B: ?Sized> UnwindSafe for MaybeBoxed<'a, B> where
B: RefUnwindSafe + UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn cast_trunc(self) -> T
pub fn cast_trunc(self) -> T
Cast to integer, truncating Read more
pub fn cast_nearest(self) -> T
pub fn cast_nearest(self) -> T
Cast to the nearest integer Read more
pub fn cast_floor(self) -> T
pub fn cast_floor(self) -> T
Cast the floor to an integer Read more
pub fn try_cast_trunc(self) -> Result<T, Error>
pub fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
pub fn try_cast_nearest(self) -> Result<T, Error>
pub fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
pub fn try_cast_floor(self) -> Result<T, Error>
pub fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
pub fn try_cast_ceil(self) -> Result<T, Error>
pub fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more