[−][src]Struct zstd::stream::raw::Encoder
An in-memory encoder for streams of data.
Methods
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]
Creates a new encoder using an existing EncoderDictionary
.
Trait Implementations
impl Operation for Encoder
[src]
fn run(&mut self, input: &mut InBuffer, output: &mut OutBuffer) -> Result<usize>
[src]
fn flush(&mut self, output: &mut OutBuffer) -> Result<usize>
[src]
fn finish(
&mut self,
output: &mut OutBuffer,
_finished_frame: bool
) -> Result<usize>
[src]
&mut self,
output: &mut OutBuffer,
_finished_frame: bool
) -> Result<usize>
fn reinit(&mut self) -> Result<()>
[src]
fn run_on_buffers(&mut self, input: &[u8], output: &mut [u8]) -> Result<Status>
[src]
Performs a single step of this operation. Read more
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,