pub type EmptyArgumentList = ArgumentList<ArgumentListEnd, ArgumentListEnd>;
Expand description
An empty argument list.
Implementations
sourceimpl EmptyArgumentList
impl EmptyArgumentList
sourcepub fn empty() -> EmptyArgumentList
pub fn empty() -> EmptyArgumentList
Creates a new empty argument list.
sourcepub fn push_arg<T>(self, arg: T) -> ArgumentList<Argument<T>, Self> where
T: Encode,
pub fn push_arg<T>(self, arg: T) -> ArgumentList<Argument<T>, Self> where
T: Encode,
Pushes the first argument to the empty argument list.
Trait Implementations
sourceimpl Encode for EmptyArgumentList
impl Encode for EmptyArgumentList
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encode_to<O: Output + ?Sized>(&self, _output: &mut O)
fn encode_to<O: Output + ?Sized>(&self, _output: &mut O)
Convert self to a slice and append it to the destination.
sourcefn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more