#[repr(C)]pub struct Format { /* private fields */ }
Expand description
Stream data format
Implementations§
Source§impl Format
impl Format
Sourcepub fn new<T: IsFormatData>(type_: BufferType, data: T) -> Option<Self>
pub fn new<T: IsFormatData>(type_: BufferType, data: T) -> Option<Self>
Create from value
Sourcepub fn try_ref<T: IsFormatData>(&self) -> Option<&T>
pub fn try_ref<T: IsFormatData>(&self) -> Option<&T>
Get reference to value
Sourcepub fn try_mut<T: IsFormatData>(&mut self) -> Option<&mut T>
pub fn try_mut<T: IsFormatData>(&mut self) -> Option<&mut T>
Get mutable reference to value
Trait Implementations§
Source§impl From<BufferType> for Format
impl From<BufferType> for Format
Source§fn from(type_: BufferType) -> Self
fn from(type_: BufferType) -> Self
Converts to this type from the input type.
impl Copy for Format
impl Send for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl !Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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