pub enum BrotliExtension {
Br,
TarBr,
Unknown,
}Expand description
Brotli extension labels.
Variants§
Br
.br payload.
TarBr
.tar.br tar plus Brotli extension.
Unknown
Unknown or unsupported Brotli extension label.
Implementations§
Source§impl BrotliExtension
impl BrotliExtension
Sourcepub fn from_extension(extension: &str) -> BrotliExtension
pub fn from_extension(extension: &str) -> BrotliExtension
Detects a Brotli extension label.
Trait Implementations§
Source§impl Clone for BrotliExtension
impl Clone for BrotliExtension
Source§fn clone(&self) -> BrotliExtension
fn clone(&self) -> BrotliExtension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrotliExtension
impl Debug for BrotliExtension
Source§impl Default for BrotliExtension
impl Default for BrotliExtension
Source§fn default() -> BrotliExtension
fn default() -> BrotliExtension
Returns the “default value” for a type. Read more
Source§impl Display for BrotliExtension
impl Display for BrotliExtension
Source§impl Hash for BrotliExtension
impl Hash for BrotliExtension
Source§impl Ord for BrotliExtension
impl Ord for BrotliExtension
Source§fn cmp(&self, other: &BrotliExtension) -> Ordering
fn cmp(&self, other: &BrotliExtension) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BrotliExtension
impl PartialEq for BrotliExtension
Source§fn eq(&self, other: &BrotliExtension) -> bool
fn eq(&self, other: &BrotliExtension) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BrotliExtension
impl PartialOrd for BrotliExtension
impl Copy for BrotliExtension
impl Eq for BrotliExtension
impl StructuralPartialEq for BrotliExtension
Auto Trait Implementations§
impl Freeze for BrotliExtension
impl RefUnwindSafe for BrotliExtension
impl Send for BrotliExtension
impl Sync for BrotliExtension
impl Unpin for BrotliExtension
impl UnsafeUnpin for BrotliExtension
impl UnwindSafe for BrotliExtension
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