pub struct TreeFormatOpts<'a> { /* private fields */ }Implementations§
Source§impl<'a> TreeFormatOpts<'a>
impl<'a> TreeFormatOpts<'a>
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<'a>) -> Self
pub fn context(self, context: FormatContextOpt<'a>) -> 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<'a> Clone for TreeFormatOpts<'a>
impl<'a> Clone for TreeFormatOpts<'a>
Source§fn clone(&self) -> TreeFormatOpts<'a>
fn clone(&self) -> TreeFormatOpts<'a>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Default for TreeFormatOpts<'a>
impl<'a> Default for TreeFormatOpts<'a>
Source§fn default() -> TreeFormatOpts<'a>
fn default() -> TreeFormatOpts<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TreeFormatOpts<'a>
impl<'a> !RefUnwindSafe for TreeFormatOpts<'a>
impl<'a> Send for TreeFormatOpts<'a>
impl<'a> Sync for TreeFormatOpts<'a>
impl<'a> Unpin for TreeFormatOpts<'a>
impl<'a> !UnwindSafe for TreeFormatOpts<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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