Trait choices::serde::ChoicesInput
source · [−]pub trait ChoicesInput<'a> {
fn from_chars(bytes: &'a Bytes) -> ChoicesResult<Self>
where
Self: Sized;
}
Expand description
Trait to retrieve values from character sequences.
Required Methods
fn from_chars(bytes: &'a Bytes) -> ChoicesResult<Self> where
Self: Sized,
fn from_chars(bytes: &'a Bytes) -> ChoicesResult<Self> where
Self: Sized,
Parses an instance of Self
from a buffer of contiguous characters.
Returns an error if the operation failed.