pub struct Input<'a> {
bytes: &'a [u8],
}Fields§
§bytes: &'a [u8]Trait Implementations§
Source§impl<'a> AtEof for Input<'a>
impl<'a> AtEof for Input<'a>
Source§fn at_eof(&self) -> bool
fn at_eof(&self) -> bool
While it might be possible in some settings to determine that the connection has closed and no further data may arrive, it is quite irrelevant considering the particular syntax of GTP. The only use case would be determining malformed input which ends without proper termination but this is currently beyond the scope of this implementation.
Source§impl<'a, S> Compare<S> for Input<'a>
impl<'a, S> Compare<S> for Input<'a>
Source§fn compare(&self, t: S) -> CompareResult
fn compare(&self, t: S) -> CompareResult
compares self to another value for equality
Source§fn compare_no_case(&self, t: S) -> CompareResult
fn compare_no_case(&self, t: S) -> CompareResult
compares self to another value for equality
independently of the case. Read more
Source§impl<'a> InputIter for Input<'a>
impl<'a> InputIter for Input<'a>
type Item = u8
type RawItem = u8
type Iter = Enumerator<'a>
type IterElem = Iterator<'a>
Source§fn iter_indices(&self) -> Self::Iter
fn iter_indices(&self) -> Self::Iter
returns an iterator over the elements and their byte offsets
Source§fn iter_elements(&self) -> Self::IterElem
fn iter_elements(&self) -> Self::IterElem
returns an iterator over the elements
Source§impl<'a> InputLength for Input<'a>
impl<'a> InputLength for Input<'a>
impl<'a> ParseTo for Input<'a>
impl<'a> Slice for Input<'a>
impl<'a> UnspecializedInput for Input<'a>
This allows us to use a default implementation
for InputTakeAtPosition.
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> UnsafeUnpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
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