Struct decthings_api::tensor::DecthingsElementImage
source · pub struct DecthingsElementImage<'a> {
pub data: &'a [u8],
/* private fields */
}
Fields§
§data: &'a [u8]
Implementations§
source§impl<'a> DecthingsElementImage<'a>
impl<'a> DecthingsElementImage<'a>
pub fn new(format: &'a str, data: &'a [u8]) -> Result<Self, SetFormatError>
pub fn format(&self) -> &str
pub fn set_format(&mut self, format: &'a str) -> Result<(), SetFormatError>
Trait Implementations§
source§impl<'a> Clone for DecthingsElementImage<'a>
impl<'a> Clone for DecthingsElementImage<'a>
source§fn clone(&self) -> DecthingsElementImage<'a>
fn clone(&self) -> DecthingsElementImage<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for DecthingsElementImage<'a>
impl<'a> RefUnwindSafe for DecthingsElementImage<'a>
impl<'a> Send for DecthingsElementImage<'a>
impl<'a> Sync for DecthingsElementImage<'a>
impl<'a> Unpin for DecthingsElementImage<'a>
impl<'a> UnwindSafe for DecthingsElementImage<'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