pub struct Value(/* private fields */);Trait Implementations§
Source§impl ValueInterface for Value
impl ValueInterface for Value
fn from_bytes(dt: DatumType, shape: &[usize], data: &[u8]) -> Result<Self>
fn as_bytes(&self) -> Result<(DatumType, &[usize], &[u8])>
fn datum_type(&self) -> Result<DatumType>
fn convert_to(&self, to: DatumType) -> Result<Self>
fn from_slice<T>(shape: &[usize], data: &[T]) -> Result<Self, Error>where
T: Datum,
fn as_slice<T>(&self) -> Result<&[T], Error>where
T: Datum,
fn as_shape_and_slice<T>(&self) -> Result<(&[usize], &[T]), Error>where
T: Datum,
fn shape(&self) -> Result<&[usize], Error>
fn view<T>(&self) -> Result<ArrayBase<ViewRepr<&T>, Dim<IxDynImpl>>, Error>where
T: Datum,
impl Send for Value
impl Sync for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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