Struct ValueBuffer
pub struct ValueBuffer { /* private fields */ }
A value represented as in-memory bytes with flexible byteorder.
Implementations
impl ValueBuffer
fn empty(ty: Type) -> SelfA value with a count of zero.
The byte order is set to the native byte order of the platform.
fn from_value<T: TiffValue>(value: &T) -> SelfCreate a value with native byte order from in-memory data.
fn byte_order(&self) -> ByteOrderfn data_type(&self) -> Typefn count(&self) -> u64The count of items in the value.
fn as_bytes(&self) -> &[u8]View the underlying raw bytes of this value.
fn as_bytes_mut(&mut self) -> &mut [u8]View the underlying mutable raw bytes of this value.
fn set_byte_order(&mut self, byte_order: ByteOrder)Change the byte order of the value representation.
Auto Trait Implementations
impl Freeze for ValueBuffer
impl RefUnwindSafe for ValueBuffer
impl Send for ValueBuffer
impl Sync for ValueBuffer
impl Unpin for ValueBuffer
impl UnsafeUnpin for ValueBuffer
impl UnwindSafe for ValueBuffer
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ValueBuffer
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ValueBuffer
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for ValueBuffer
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ValueBuffer
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ValueBuffer
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ValueBuffer
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Read<Exclusive, BecauseExclusive> for ValueBuffer
where
T: ?Sized,
impl<T, U> Into<U> for ValueBuffer
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ValueBuffer
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ValueBuffer
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>