Struct VendorExtensionString
pub struct VendorExtensionString(/* private field */);
A newtype wrapper around Vec
Implementations
impl VendorExtensionString
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_optionmust not contain a space (b' ') character, otherwise [Error::BadInput] is returned.fn value(&self) -> &[u8]Get the vendor extension string.
Trait Implementations
impl Clone for VendorExtensionString
fn clone(&self) -> VendorExtensionString
impl Debug for VendorExtensionString
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto 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
impl<T> Any for VendorExtensionString
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for VendorExtensionString
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for VendorExtensionString
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for VendorExtensionString
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for VendorExtensionString
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for VendorExtensionString
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for VendorExtensionString
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 VendorExtensionString
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for VendorExtensionString
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>