Struct zstd::stream::raw::Encoder [−][src]
An in-memory encoder for streams of data.
Implementations
impl Encoder
[src][−]
pub fn new(level: i32) -> Result<Self>
[src][−]
Creates a new encoder.
pub fn with_dictionary(level: i32, dictionary: &[u8]) -> Result<Self>
[src][−]
Creates a new encoder initialized with the given dictionary.
pub fn with_prepared_dictionary(
dictionary: &EncoderDictionary<'_>
) -> Result<Self>
[src][−]
dictionary: &EncoderDictionary<'_>
) -> Result<Self>
Creates a new encoder using an existing EncoderDictionary
.
pub fn set_parameter(&mut self, parameter: CParameter) -> Result<()>
[src][−]
Sets a compression parameter for this encoder.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl !Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,