pub struct CharsRangePoppedLine<'a, 'r> { /* private fields */ }
Expand description
A line popped from CharsRange
using pop_line
method.
Note that this may pop a line from CharsRange
, but StrQueue
behind the
range won’t be affected.
Also note that it is unspecified whether the line will be removed from the
queue, if the CharsRangePoppedLine
value is not dropped while the borrow
it holds expires (e.g. due to core::mem::forget
).
Implementations§
Source§impl<'a, 'r> CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> CharsRangePoppedLine<'a, 'r>
Sourcepub fn to_chars_range(&self) -> CharsRange<'a>
pub fn to_chars_range(&self) -> CharsRange<'a>
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, 'r> Debug for CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> Debug for CharsRangePoppedLine<'a, 'r>
Source§impl Display for CharsRangePoppedLine<'_, '_>
impl Display for CharsRangePoppedLine<'_, '_>
Source§impl Drop for CharsRangePoppedLine<'_, '_>
impl Drop for CharsRangePoppedLine<'_, '_>
Source§impl Ord for CharsRangePoppedLine<'_, '_>
impl Ord for CharsRangePoppedLine<'_, '_>
Source§fn cmp(&self, rhs: &CharsRangePoppedLine<'_, '_>) -> Ordering
fn cmp(&self, rhs: &CharsRangePoppedLine<'_, '_>) -> 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 CharsRangePoppedLine<'_, '_>
impl PartialEq<&str> for CharsRangePoppedLine<'_, '_>
Source§impl PartialEq<CharsRangePoppedLine<'_, '_>> for &str
impl PartialEq<CharsRangePoppedLine<'_, '_>> for &str
Source§fn eq(&self, other: &CharsRangePoppedLine<'_, '_>) -> bool
fn eq(&self, other: &CharsRangePoppedLine<'_, '_>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialEq<CharsRangePoppedLine<'_, '_>> for str
impl PartialEq<CharsRangePoppedLine<'_, '_>> for str
Source§fn eq(&self, other: &CharsRangePoppedLine<'_, '_>) -> bool
fn eq(&self, other: &CharsRangePoppedLine<'_, '_>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialEq<str> for CharsRangePoppedLine<'_, '_>
impl PartialEq<str> for CharsRangePoppedLine<'_, '_>
Source§impl PartialEq for CharsRangePoppedLine<'_, '_>
impl PartialEq for CharsRangePoppedLine<'_, '_>
Source§fn eq(&self, other: &CharsRangePoppedLine<'_, '_>) -> bool
fn eq(&self, other: &CharsRangePoppedLine<'_, '_>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl PartialOrd<&str> for CharsRangePoppedLine<'_, '_>
impl PartialOrd<&str> for CharsRangePoppedLine<'_, '_>
Source§impl PartialOrd<CharsRangePoppedLine<'_, '_>> for &str
impl PartialOrd<CharsRangePoppedLine<'_, '_>> for &str
Source§impl PartialOrd<CharsRangePoppedLine<'_, '_>> for str
impl PartialOrd<CharsRangePoppedLine<'_, '_>> for str
Source§impl PartialOrd<str> for CharsRangePoppedLine<'_, '_>
impl PartialOrd<str> for CharsRangePoppedLine<'_, '_>
Source§impl PartialOrd for CharsRangePoppedLine<'_, '_>
impl PartialOrd for CharsRangePoppedLine<'_, '_>
impl Eq for CharsRangePoppedLine<'_, '_>
Auto Trait Implementations§
impl<'a, 'r> Freeze for CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> RefUnwindSafe for CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> Send for CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> Sync for CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> Unpin for CharsRangePoppedLine<'a, 'r>
impl<'a, 'r> !UnwindSafe for CharsRangePoppedLine<'a, 'r>
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