pub struct SegmentInfo {
pub original: String,
pub shortened: String,
pub was_abbreviated: bool,
pub is_filename: bool,
}Expand description
Metadata about a single component in the shortened path.
Fields§
§original: StringThe original full text.
shortened: StringThe shortened text (may equal original if not abbreviated).
was_abbreviated: boolWhether this component was abbreviated.
is_filename: boolWhether this is the filename (sacred, always last).
Trait Implementations§
Source§impl Clone for SegmentInfo
impl Clone for SegmentInfo
Source§fn clone(&self) -> SegmentInfo
fn clone(&self) -> SegmentInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SegmentInfo
impl Debug for SegmentInfo
Source§impl PartialEq for SegmentInfo
impl PartialEq for SegmentInfo
impl Eq for SegmentInfo
impl StructuralPartialEq for SegmentInfo
Auto Trait Implementations§
impl Freeze for SegmentInfo
impl RefUnwindSafe for SegmentInfo
impl Send for SegmentInfo
impl Sync for SegmentInfo
impl Unpin for SegmentInfo
impl UnsafeUnpin for SegmentInfo
impl UnwindSafe for SegmentInfo
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