#[non_exhaustive]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 (Non-exhaustive)§
This enum is marked as non-exhaustive
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 for VorbisVendorStringAction
impl PartialEq for VorbisVendorStringAction
impl Copy for VorbisVendorStringAction
impl Eq for VorbisVendorStringAction
impl StructuralPartialEq for VorbisVendorStringAction
Auto Trait Implementations§
impl Freeze for VorbisVendorStringAction
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.