pub enum ScalarCowBufferRepr<'a> {
// some variants omitted
}Expand description
ScalarCowBuffer representation.
Trait Implementations§
Source§impl<'a, T: Scalar> From<CowBufferRepr<'a, T>> for ScalarCowBufferRepr<'a>
impl<'a, T: Scalar> From<CowBufferRepr<'a, T>> for ScalarCowBufferRepr<'a>
Source§fn from(buffer: CowBufferRepr<'a, T>) -> Self
fn from(buffer: CowBufferRepr<'a, T>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ScalarBufferRepr> for ScalarCowBufferRepr<'a>
impl<'a> From<ScalarBufferRepr> for ScalarCowBufferRepr<'a>
Source§fn from(buffer: ScalarBufferRepr) -> Self
fn from(buffer: ScalarBufferRepr) -> Self
Converts to this type from the input type.
Source§impl<'a> From<ScalarSliceRepr<'a>> for ScalarCowBufferRepr<'a>
impl<'a> From<ScalarSliceRepr<'a>> for ScalarCowBufferRepr<'a>
Source§fn from(slice: ScalarSliceRepr<'a>) -> Self
fn from(slice: ScalarSliceRepr<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a, T: Scalar> TryFrom<ScalarCowBufferRepr<'a>> for CowBufferRepr<'a, T>
impl<'a, T: Scalar> TryFrom<ScalarCowBufferRepr<'a>> for CowBufferRepr<'a, T>
Source§type Error = ScalarCowBufferRepr<'a>
type Error = ScalarCowBufferRepr<'a>
The type returned in the event of a conversion error.
impl<'a> ScalarData for ScalarCowBufferRepr<'a>
impl<'a> ScalarDataOwned for ScalarCowBufferRepr<'a>
impl Send for ScalarCowBufferRepr<'_>
impl Sync for ScalarCowBufferRepr<'_>
Auto Trait Implementations§
impl<'a> Freeze for ScalarCowBufferRepr<'a>
impl<'a> !RefUnwindSafe for ScalarCowBufferRepr<'a>
impl<'a> Unpin for ScalarCowBufferRepr<'a>
impl<'a> !UnwindSafe for ScalarCowBufferRepr<'a>
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> 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 more