[−][src]Struct asuran_chunker::static_size::StaticSize
Settings for a static chunk length Chunker
This is a pretty simple chunker, it simply splits the contents into len
sized
chunks. Has a comparatively poor reduplication ratio, due to the boundary shift
problem, but it has more performance than just about anything else out there.
Fields
len: usize
Trait Implementations
impl Chunker for StaticSize
[src]
type Chunks = StaticSizeChunker
The return type of the functions in this trait is an iterator over the chunks of their input. Read more
fn chunk_boxed(&self, read: Box<dyn Read + Send + 'static>) -> Self::Chunks
[src]
fn chunk<R: Read + Send + 'static>(&self, read: R) -> Self::Chunks
[src]
fn chunk_slice<R: AsRef<[u8]> + Send + 'static>(&self, slice: R) -> Self::Chunks
[src]
impl Clone for StaticSize
[src]
fn clone(&self) -> StaticSize
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for StaticSize
[src]
impl Default for StaticSize
[src]
Auto Trait Implementations
impl RefUnwindSafe for StaticSize
impl Send for StaticSize
impl Sync for StaticSize
impl Unpin for StaticSize
impl UnwindSafe for StaticSize
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,