Struct y4m::VendorExtensionString
source · pub struct VendorExtensionString(_);
Expand description
A newtype wrapper around Vec
Implementations§
source§impl VendorExtensionString
impl VendorExtensionString
sourcepub fn new(value: Vec<u8>) -> Result<VendorExtensionString, Error>
pub fn new(value: Vec<u8>) -> Result<VendorExtensionString, Error>
Create a new vendor extension string.
For example, setting to b"COLORRANGE=FULL"
sets the interpretation of
the YUV values to cover the full range (rather a limited “studio swing”
range).
The argument x_option
must not contain a space (b’ ’) character,
otherwise Error::BadInput is returned.
Trait Implementations§
source§impl Clone for VendorExtensionString
impl Clone for VendorExtensionString
source§fn clone(&self) -> VendorExtensionString
fn clone(&self) -> VendorExtensionString
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 RefUnwindSafe for VendorExtensionString
impl Send for VendorExtensionString
impl Sync for VendorExtensionString
impl Unpin for VendorExtensionString
impl UnwindSafe for VendorExtensionString
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