[−][src]Struct jsdoc::Input
Implementations
impl<'i> Input<'i>
[src]
pub const fn empty() -> Self
[src]
pub const fn new(start: BytePos, end: BytePos, src: &'i str) -> Self
[src]
pub fn span(self) -> Span
[src]
Trait Implementations
impl<'i> Clone for Input<'i>
[src]
impl<'a, '_> Compare<&'a str> for Input<'_>
[src]
fn compare(&self, t: &'a str) -> CompareResult
[src]
fn compare_no_case(&self, t: &'a str) -> CompareResult
[src]
impl<'i> Copy for Input<'i>
[src]
impl<'i> Debug for Input<'i>
[src]
impl<'_> Deref for Input<'_>
[src]
impl<'a, 'b> From<&'a Comment> for Input<'a>
[src]
impl<'i> From<Input<'i>> for Text
[src]
impl<'a> InputIter for Input<'a>
[src]
type Item = char
the current input type is a sequence of that Item
type. Read more
type Iter = CharIndices<'a>
an iterator over the input type, producing the item and its position
for use with Slice. If we're iterating over &str
, the position
corresponds to the byte index of the character Read more
type IterElem = Chars<'a>
an iterator over the input type, producing the item
fn iter_indices(&self) -> Self::Iter
[src]
fn iter_elements(&self) -> Self::IterElem
[src]
fn position<P>(&self, predicate: P) -> Option<usize> where
P: Fn(Self::Item) -> bool,
[src]
P: Fn(Self::Item) -> bool,
fn slice_index(&self, count: usize) -> Option<usize>
[src]
impl<'_> InputLength for Input<'_>
[src]
impl<'_> InputTake for Input<'_>
[src]
impl<'_> Slice<Range<usize>> for Input<'_>
[src]
impl<'_> Slice<RangeFrom<usize>> for Input<'_>
[src]
impl<'_> Slice<RangeTo<usize>> for Input<'_>
[src]
impl<'_> UnspecializedInput for Input<'_>
[src]
Auto Trait Implementations
impl<'i> RefUnwindSafe for Input<'i>
impl<'i> Send for Input<'i>
impl<'i> Sync for Input<'i>
impl<'i> Unpin for Input<'i>
impl<'i> UnwindSafe for Input<'i>
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> InputTakeAtPosition for T where
T: InputLength + InputIter + InputTake + UnspecializedInput + Clone,
[src]
T: InputLength + InputIter + InputTake + UnspecializedInput + Clone,
type Item = <T as InputIter>::Item
the current input type is a sequence of that Item
type. Read more
fn split_at_position<P, E>(&self, predicate: P) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
[src]
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
fn split_at_position1<P, E>(
&self,
predicate: P,
e: ErrorKind
) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
[src]
&self,
predicate: P,
e: ErrorKind
) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
fn split_at_position_complete<P, E>(
&self,
predicate: P
) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
[src]
&self,
predicate: P
) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
fn split_at_position1_complete<P, E>(
&self,
predicate: P,
e: ErrorKind
) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
[src]
&self,
predicate: P,
e: ErrorKind
) -> Result<(T, T), Err<E>> where
E: ParseError<T>,
P: Fn(<T as InputTakeAtPosition>::Item) -> bool,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,