pub struct PoppedFragment<'a> { /* private fields */ }
Expand description
A fragment popped from StrQueue
using pop_fragment
method.
Note that it is unspecified whether the line will be removed from the queue,
if the PoppedFragment
value is not dropped while the borrow it holds expires
(e.g. due to core::mem::forget
).
Implementations§
Source§impl<'a> PoppedFragment<'a>
impl<'a> PoppedFragment<'a>
Sourcepub fn to_fragment(&self) -> Fragment<'_>
pub fn to_fragment(&self) -> Fragment<'_>
Returns the fragment for the line.
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 PoppedFragment<'a>
impl<'a> Debug for PoppedFragment<'a>
Source§impl Display for PoppedFragment<'_>
impl Display for PoppedFragment<'_>
Source§impl Drop for PoppedFragment<'_>
impl Drop for PoppedFragment<'_>
Source§impl Ord for PoppedFragment<'_>
impl Ord for PoppedFragment<'_>
Source§fn cmp(&self, rhs: &PoppedFragment<'_>) -> Ordering
fn cmp(&self, rhs: &PoppedFragment<'_>) -> 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 PoppedFragment<'_>
impl PartialEq<&str> for PoppedFragment<'_>
Source§impl PartialEq<PoppedFragment<'_>> for &str
impl PartialEq<PoppedFragment<'_>> for &str
Source§impl PartialEq<PoppedFragment<'_>> for str
impl PartialEq<PoppedFragment<'_>> for str
Source§impl PartialEq<str> for PoppedFragment<'_>
impl PartialEq<str> for PoppedFragment<'_>
Source§impl PartialEq for PoppedFragment<'_>
impl PartialEq for PoppedFragment<'_>
Source§impl PartialOrd<&str> for PoppedFragment<'_>
impl PartialOrd<&str> for PoppedFragment<'_>
Source§impl PartialOrd<PoppedFragment<'_>> for &str
impl PartialOrd<PoppedFragment<'_>> for &str
Source§impl PartialOrd<PoppedFragment<'_>> for str
impl PartialOrd<PoppedFragment<'_>> for str
Source§impl PartialOrd<str> for PoppedFragment<'_>
impl PartialOrd<str> for PoppedFragment<'_>
Source§impl PartialOrd for PoppedFragment<'_>
impl PartialOrd for PoppedFragment<'_>
impl Eq for PoppedFragment<'_>
Auto Trait Implementations§
impl<'a> Freeze for PoppedFragment<'a>
impl<'a> RefUnwindSafe for PoppedFragment<'a>
impl<'a> Send for PoppedFragment<'a>
impl<'a> Sync for PoppedFragment<'a>
impl<'a> Unpin for PoppedFragment<'a>
impl<'a> !UnwindSafe for PoppedFragment<'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