pub struct Take(pub usize);Tuple Fields§
§0: usizeTrait Implementations§
Source§impl<'a> Parser<&'a [u8]> for Take
impl<'a> Parser<&'a [u8]> for Take
type Output = &'a [u8]
type Error = Error<'static>
fn parse( &mut self, input: &'a [u8], from: usize, ) -> Result<Self::Output, Self::Error>
fn p(self) -> P<Self>where
Self: Sized,
fn by_ref(&mut self) -> P<ByRef<'_, Self>>where
Self: Sized,
fn and<B>(self, b: B) -> P<And<Self, B>>
fn and_skip<B>(self, b: B) -> P<AndSkip<Self, B>>
fn skip_and<B>(self, b: B) -> P<SkipAnd<Self, B>>
fn or<B>(self, b: B) -> P<Or<Self, B>>
fn map<F, Output>(self, f: F) -> P<Map<Self, F>>
fn map_err<F, Error>(self, f: F) -> P<MapErr<Self, F>>
fn and_then<F, Output>(self, f: F) -> P<AndThen<Self, F>>
fn optional(self) -> P<Optional<Self>>where
Self: Sized,
fn bind<B, F>(self, f: F) -> P<Bind<Self, F>>
fn repeat<R>(self, range: R) -> P<Repeat<Self, R>>
impl Copy for Take
impl StructuralPartialEq for Take
Auto Trait Implementations§
impl Freeze for Take
impl RefUnwindSafe for Take
impl Send for Take
impl Sync for Take
impl Unpin for Take
impl UnsafeUnpin for Take
impl UnwindSafe for Take
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more