pub struct Decoder {
pub name: &'static str,
pub func: fn(s: &str) -> Result<Vec<u8>, Box<dyn Error>>,
}Expand description
Defines Decoder for contentEncoding.
Fields§
§name: &'static strName of the encoding
func: fn(s: &str) -> Result<Vec<u8>, Box<dyn Error>>Decodes given string to bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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