pub struct PathFormatter { /* private fields */ }Expand description
Path formatter for generating styled path strings
Implementations§
Source§impl PathFormatter
impl PathFormatter
Sourcepub fn new(config: &PathConfig) -> Self
pub fn new(config: &PathConfig) -> Self
Create new path formatter
Sourcepub fn format(
&self,
parsed: &ParsedPath,
target_style: PathStyle,
) -> PathResult<String>
pub fn format( &self, parsed: &ParsedPath, target_style: PathStyle, ) -> PathResult<String>
Format parsed path with specified style
§Errors
Returns PathError if formatting fails (e.g., invalid components).
Trait Implementations§
Source§impl Clone for PathFormatter
impl Clone for PathFormatter
Source§fn clone(&self) -> PathFormatter
fn clone(&self) -> PathFormatter
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 PathFormatter
impl Debug for PathFormatter
Auto Trait Implementations§
impl Freeze for PathFormatter
impl RefUnwindSafe for PathFormatter
impl Send for PathFormatter
impl Sync for PathFormatter
impl Unpin for PathFormatter
impl UnwindSafe for PathFormatter
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