[−][src]Enum dbin::Spec
Dead simple, quick and dirty binary data parser combinator
Variants
Fields of Int
Implementations
impl Spec
[src]
impl Spec
[src]
pub fn args() -> SpecArgs
[src]
pub fn pairs() -> SpecPairs
[src]
pub fn le_magic_u64(value: u64) -> Spec
[src]
pub fn be_magic_u64(value: u64) -> Spec
[src]
pub fn magic_u64(little_endian: bool, value: u64) -> Spec
[src]
pub fn magic(little_endian: bool, nbytes: usize, value: i64) -> Spec
[src]
pub fn le_magic(nbytes: usize, value: i64) -> Spec
[src]
pub fn be_magic(nbytes: usize, value: i64) -> Spec
[src]
pub fn int(little_endian: bool, signed: bool, nbytes: usize) -> Spec
[src]
pub fn le_int(signed: bool, nbytes: usize) -> Spec
[src]
pub fn be_int(signed: bool, nbytes: usize) -> Spec
[src]
pub fn le_sint(nbytes: usize) -> Spec
[src]
pub fn le_uint(nbytes: usize) -> Spec
[src]
pub fn be_sint(nbytes: usize) -> Spec
[src]
pub fn be_uint(nbytes: usize) -> Spec
[src]
pub fn arr<E: Into<Expr>>(p: Spec, e: E) -> Spec
[src]
pub fn en<K: Into<Key>>(vec: Vec<(K, Spec)>) -> Spec
[src]
Enum -- will try each of the alternatives in order, and return the first successful variant The variant will be tagged in the resulting Data (as a Data::Enum)
pub fn st(vec: Vec<Spec>) -> Spec
[src]
Struct -- all alternatives must succeed in order
pub fn scope<K: Into<Key>, E: Into<Expr>>(args: Vec<(K, E)>, p: Spec) -> Spec
[src]
pub fn store<K: Into<Key>>(key: K, p: Spec) -> Spec
[src]
Stores the result of a parse into a key for later use (e.g. as length of an array)
Auto Trait Implementations
impl !RefUnwindSafe for Spec
impl !Send for Spec
impl !Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
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, 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>,