[−][src]Struct nell::sys::Cursor
Implementations
impl<'a> Cursor<'a>
[src]
pub fn next<T: Bytes>(&mut self) -> Option<(T, Self)>
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn asciiz(self) -> Result<&'a str, Utf8Error>
[src]
pub fn bytes(self) -> &'a [u8]
[src]
pub fn copy<T: Bytes>(self) -> T
[src]
Trait Implementations
impl<'a> Clone for Cursor<'a>
[src]
impl<'a> Debug for Cursor<'a>
[src]
impl<'_> Default for Cursor<'_>
[src]
impl<'a> Eq for Cursor<'a>
[src]
impl<'a> From<&'a [u8]> for Cursor<'a>
[src]
impl<'a> PartialEq<Cursor<'a>> for Cursor<'a>
[src]
impl<'a> StructuralEq for Cursor<'a>
[src]
impl<'a> StructuralPartialEq for Cursor<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Cursor<'a>
impl<'a> !Send for Cursor<'a>
impl<'a> !Sync for Cursor<'a>
impl<'a> Unpin for Cursor<'a>
impl<'a> UnwindSafe for Cursor<'a>
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> 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>,