pub struct ShrinkResult {
pub shortened: String,
pub original_len: usize,
pub shortened_len: usize,
pub was_truncated: bool,
pub detected_style: PathStyle,
pub segments: Vec<SegmentInfo>,
}Expand description
Result of a shrink operation with metadata.
Fields§
§shortened: StringThe shortened path string.
original_len: usizeLength of the original path.
shortened_len: usizeLength of the shortened path.
was_truncated: boolWhether the path was actually truncated.
detected_style: PathStyleDetected (or forced) path style.
segments: Vec<SegmentInfo>Per-segment metadata for the shortened path.
Trait Implementations§
Source§impl Clone for ShrinkResult
impl Clone for ShrinkResult
Source§fn clone(&self) -> ShrinkResult
fn clone(&self) -> ShrinkResult
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 moreAuto Trait Implementations§
impl Freeze for ShrinkResult
impl RefUnwindSafe for ShrinkResult
impl Send for ShrinkResult
impl Sync for ShrinkResult
impl Unpin for ShrinkResult
impl UnsafeUnpin for ShrinkResult
impl UnwindSafe for ShrinkResult
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