pub struct TreeFormatOpts { /* private fields */ }Implementations§
Source§impl TreeFormatOpts
impl TreeFormatOpts
Sourcepub fn hide_nodes(self, hide: bool) -> Self
pub fn hide_nodes(self, hide: bool) -> Self
Sets whether to hide NODE identifiers in the tree representation.
Sourcepub fn highlighting_target(self, target: HashSet<Digest>) -> Self
pub fn highlighting_target(self, target: HashSet<Digest>) -> Self
Sets the set of digests to highlight in the tree representation.
Sourcepub fn context(self, context: FormatContextOpt) -> Self
pub fn context(self, context: FormatContextOpt) -> Self
Sets the formatting context for the tree representation.
Sourcepub fn digest_display(self, opt: DigestDisplayFormat) -> Self
pub fn digest_display(self, opt: DigestDisplayFormat) -> Self
Sets the digest display option for the tree representation.
Trait Implementations§
Source§impl Clone for TreeFormatOpts
impl Clone for TreeFormatOpts
Source§fn clone(&self) -> TreeFormatOpts
fn clone(&self) -> TreeFormatOpts
Returns a copy 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 Default for TreeFormatOpts
impl Default for TreeFormatOpts
Source§fn default() -> TreeFormatOpts
fn default() -> TreeFormatOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TreeFormatOpts
impl !RefUnwindSafe for TreeFormatOpts
impl Send for TreeFormatOpts
impl Sync for TreeFormatOpts
impl Unpin for TreeFormatOpts
impl !UnwindSafe for TreeFormatOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more