[−][src]Trait cookie_factory::BackToTheBuffer
Trait for Write
types that allow skipping and reserving a slice, then writing some data,
then write something in the slice we reserved using the return for our data write.
Required methods
pub fn reserve_write_use<Tmp, Gen: Fn(WriteContext<Self>) -> Result<(WriteContext<Self>, Tmp), GenError>, Before: Fn(WriteContext<Self>, Tmp) -> GenResult<Self>>(
s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError> where
Self: Sized,
[src]
s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError> where
Self: Sized,
Implementations on Foreign Types
impl BackToTheBuffer for &mut [u8]
[src]
pub fn reserve_write_use<Tmp, Gen: Fn(WriteContext<Self>) -> Result<(WriteContext<Self>, Tmp), GenError>, Before: Fn(WriteContext<Self>, Tmp) -> GenResult<Self>>(
s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError>
[src]
s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError>
impl BackToTheBuffer for Vec<u8>
[src]
pub fn reserve_write_use<Tmp, Gen: Fn(WriteContext<Self>) -> Result<(WriteContext<Self>, Tmp), GenError>, Before: Fn(WriteContext<Self>, Tmp) -> GenResult<Self>>(
s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError>
[src]
s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError>
Implementors
impl<W: Seek> BackToTheBuffer for W
[src]
pub fn reserve_write_use<Tmp, Gen: Fn(WriteContext<Self>) -> Result<(WriteContext<Self>, Tmp), GenError>, Before: Fn(WriteContext<Self>, Tmp) -> GenResult<Self>>(
mut s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError>
[src]
mut s: WriteContext<Self>,
reserved: usize,
gen: &Gen,
before: &Before
) -> Result<WriteContext<Self>, GenError>