pub struct PoppedLine<'a> { /* private fields */ }
Expand description
A line popped from StrQueue
using pop_line
method.
Note that it is unspecified whether the line will be removed from the queue,
if the PoppedLine
value is not dropped while the borrow it holds expires
(e.g. due to core::mem::forget
).
Implementations§
Source§impl<'a> PoppedLine<'a>
impl<'a> PoppedLine<'a>
Sourcepub fn to_chars_range(&self) -> CharsRange<'_>
pub fn to_chars_range(&self) -> CharsRange<'_>
Returns the chars range for the line.
Sourcepub fn to_bytes_range(&self) -> BytesRange<'_>
pub fn to_bytes_range(&self) -> BytesRange<'_>
Returns the bytes range for the line.
Trait Implementations§
Source§impl<'a> Debug for PoppedLine<'a>
impl<'a> Debug for PoppedLine<'a>
Source§impl Display for PoppedLine<'_>
impl Display for PoppedLine<'_>
Source§impl Drop for PoppedLine<'_>
impl Drop for PoppedLine<'_>
Source§impl Ord for PoppedLine<'_>
impl Ord for PoppedLine<'_>
Source§fn cmp(&self, rhs: &PoppedLine<'_>) -> Ordering
fn cmp(&self, rhs: &PoppedLine<'_>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&str> for PoppedLine<'_>
impl PartialEq<&str> for PoppedLine<'_>
Source§impl PartialEq<PoppedLine<'_>> for &str
impl PartialEq<PoppedLine<'_>> for &str
Source§impl PartialEq<PoppedLine<'_>> for str
impl PartialEq<PoppedLine<'_>> for str
Source§impl PartialEq<str> for PoppedLine<'_>
impl PartialEq<str> for PoppedLine<'_>
Source§impl PartialEq for PoppedLine<'_>
impl PartialEq for PoppedLine<'_>
Source§impl PartialOrd<&str> for PoppedLine<'_>
impl PartialOrd<&str> for PoppedLine<'_>
Source§impl PartialOrd<PoppedLine<'_>> for &str
impl PartialOrd<PoppedLine<'_>> for &str
Source§impl PartialOrd<PoppedLine<'_>> for str
impl PartialOrd<PoppedLine<'_>> for str
Source§impl PartialOrd<str> for PoppedLine<'_>
impl PartialOrd<str> for PoppedLine<'_>
Source§impl PartialOrd for PoppedLine<'_>
impl PartialOrd for PoppedLine<'_>
impl Eq for PoppedLine<'_>
Auto Trait Implementations§
impl<'a> Freeze for PoppedLine<'a>
impl<'a> RefUnwindSafe for PoppedLine<'a>
impl<'a> Send for PoppedLine<'a>
impl<'a> Sync for PoppedLine<'a>
impl<'a> Unpin for PoppedLine<'a>
impl<'a> !UnwindSafe for PoppedLine<'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