pub struct FormatPathsOpts { /* private fields */ }
Expand description
Options for formatting paths.
Implementations§
Source§impl FormatPathsOpts
impl FormatPathsOpts
Sourcepub fn indent(self, indent: bool) -> Self
pub fn indent(self, indent: bool) -> Self
Sets whether to indent each path element. If true, each element will be indented by 4 spaces per level.
Sourcepub fn element_format(self, format: PathElementFormat) -> Self
pub fn element_format(self, format: PathElementFormat) -> Self
Sets the format for each path element.
Default is PathElementFormat::Diagnostic(None)
.
Sourcepub fn last_element_only(self, last_element_only: bool) -> Self
pub fn last_element_only(self, last_element_only: bool) -> Self
Sets whether to format only the last element of each path. If true, only the last element will be formatted. If false, all elements will be formatted.
Trait Implementations§
Source§impl AsRef<FormatPathsOpts> for FormatPathsOpts
impl AsRef<FormatPathsOpts> for FormatPathsOpts
Source§fn as_ref(&self) -> &FormatPathsOpts
fn as_ref(&self) -> &FormatPathsOpts
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for FormatPathsOpts
impl Clone for FormatPathsOpts
Source§fn clone(&self) -> FormatPathsOpts
fn clone(&self) -> FormatPathsOpts
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 FormatPathsOpts
impl Debug for FormatPathsOpts
Auto Trait Implementations§
impl Freeze for FormatPathsOpts
impl RefUnwindSafe for FormatPathsOpts
impl Send for FormatPathsOpts
impl Sync for FormatPathsOpts
impl Unpin for FormatPathsOpts
impl UnwindSafe for FormatPathsOpts
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