pub enum VorbisVendorStringAction {
Copy,
Replace,
AppendTag,
AppendShortTag,
Empty,
}Expand description
Identifies which strategy to use to optimize the Vorbis vendor string in the Vorbis comment header.
Variants§
Copy
The vendor string contained in the comment header will be preserved as-is.
Replace
The vendor string contained in the comment header will be replaced by a short one that identifies OptiVorbis.
This will improve interoperability if the original vendor string contains invalid UTF-8 characters, as such characters violate the Vorbis specification.
AppendTag
A string that identifies OptiVorbis will be appended to the vendor string contained in the comment header. The additional information takes little space and can be useful for traceability and troubleshooting purposes, so this is the recommended action in most cases.
AppendShortTag
Like AppendTag, but appends a shorter identifying
string.
Empty
The vendor string contained in the comment header will be cleared out, to save as much space as possible.
This will improve interoperability if the original vendor string contains invalid UTF-8 characters, as such characters violate the Vorbis specification.
Trait Implementations§
source§impl Clone for VorbisVendorStringAction
impl Clone for VorbisVendorStringAction
source§fn clone(&self) -> VorbisVendorStringAction
fn clone(&self) -> VorbisVendorStringAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VorbisVendorStringAction
impl Debug for VorbisVendorStringAction
source§impl Default for VorbisVendorStringAction
impl Default for VorbisVendorStringAction
source§impl PartialEq<VorbisVendorStringAction> for VorbisVendorStringAction
impl PartialEq<VorbisVendorStringAction> for VorbisVendorStringAction
source§fn eq(&self, other: &VorbisVendorStringAction) -> bool
fn eq(&self, other: &VorbisVendorStringAction) -> bool
self and other values to be equal, and is used
by ==.impl Copy for VorbisVendorStringAction
impl Eq for VorbisVendorStringAction
impl StructuralEq for VorbisVendorStringAction
impl StructuralPartialEq for VorbisVendorStringAction
Auto Trait Implementations§
impl RefUnwindSafe for VorbisVendorStringAction
impl Send for VorbisVendorStringAction
impl Sync for VorbisVendorStringAction
impl Unpin for VorbisVendorStringAction
impl UnwindSafe for VorbisVendorStringAction
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.