Input

Struct Input 

Source
pub struct Input<'a> { /* private fields */ }

Implementations§

Source§

impl Input<'_>

Source

pub fn extension<T: Any>(&self) -> Result<&T>

Source

pub fn resolve(&self) -> Arc<dyn Resolve>

Trait Implementations§

Source§

impl<'a> Deref for Input<'a>

Source§

type Target = ReflessInput<'a>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Input<'_>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Parse<Input<'_>> for Vec<u8>

Source§

fn parse(input: Input<'_>) -> Result<Self>

Source§

impl<'a, T: Parse<ReflessInput<'a>>> Parse<Input<'a>> for Refless<T>

Source§

fn parse(input: Input<'a>) -> Result<Self>

Source§

impl<T: Object> ParseInline<Input<'_>> for Point<T>

Source§

fn parse_inline(input: &mut Input<'_>) -> Result<Self>

Source§

fn parse_as_inline(input: I) -> Result<Self>

Source§

impl ParseInline<Input<'_>> for RawPointInner

Source§

fn parse_inline(input: &mut Input<'_>) -> Result<Self>

Source§

fn parse_as_inline(input: I) -> Result<Self>

Source§

impl<'a, T: ParseInline<ReflessInput<'a>>> ParseInline<Input<'a>> for Refless<T>

Source§

fn parse_inline(input: &mut Input<'a>) -> Result<Self>

Source§

fn parse_as_inline(input: I) -> Result<Self>

Source§

impl ParseInput for Input<'_>

Source§

fn parse_chunk<'a, const N: usize>(&mut self) -> Result<&'a [u8; N]>
where Self: 'a,

Source§

fn parse_n<'a>(&mut self, n: usize) -> Result<&'a [u8]>
where Self: 'a,

Source§

fn parse_ahead<T: Parse<Self>>(&mut self, n: usize) -> Result<T>

Source§

fn parse_compare<T: ParseInline<Self>>( &mut self, n: usize, c: &[u8], ) -> Result<Option<T>>

Source§

fn parse_all<'a>(self) -> &'a [u8]
where Self: 'a,

Source§

fn empty(self) -> Result<()>

Source§

fn non_empty(self) -> Option<Self>

Source§

fn consume(self, f: impl FnMut(&mut Self) -> Result<()>) -> Result<()>

Source§

fn parse_collect<T: ParseInline<Self>, B: FromIterator<T>>(self) -> Result<B>

Source§

fn collect<T, B: FromIterator<T>>(self, f: impl FnMut(&mut Self) -> T) -> B

Source§

fn iter<T>(self, f: impl FnMut(&mut Self) -> T) -> impl Iterator<Item = T>

Source§

fn parse_inline<T: ParseInline<Self>>(&mut self) -> Result<T>

Source§

fn parse<T: Parse<Self>>(self) -> Result<T>

Auto Trait Implementations§

§

impl<'a> Freeze for Input<'a>

§

impl<'a> !RefUnwindSafe for Input<'a>

§

impl<'a> !Send for Input<'a>

§

impl<'a> !Sync for Input<'a>

§

impl<'a> Unpin for Input<'a>

§

impl<'a> !UnwindSafe for Input<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T

Source§

fn any_ref(&self) -> &(dyn Any + 'static)
where T: 'static,

Source§

fn any_mut(&mut self) -> &mut (dyn Any + 'static)
where T: 'static,

Source§

fn any_box(self: Box<T>) -> Box<dyn Any>
where T: 'static,

Source§

fn any_arc(self: Arc<T>) -> Arc<dyn Any>
where T: 'static,

Source§

fn any_arc_sync(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
where T: 'static + Send + Sync,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.