pub struct VendorExtensionString(pub(crate) Vec<u8>);Expand description
A newtype wrapper around Vec
Tuple Fields§
§0: Vec<u8>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 duplicate 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 Freeze for VendorExtensionString
impl RefUnwindSafe for VendorExtensionString
impl Send for VendorExtensionString
impl Sync for VendorExtensionString
impl Unpin for VendorExtensionString
impl UnsafeUnpin 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