pub struct ScopeOptions {
pub title: Option<String>,
pub sort_keys: bool,
pub indent_guides: bool,
pub max_length: Option<usize>,
pub max_string: Option<usize>,
pub max_depth: Option<usize>,
pub overflow: Option<Overflow>,
}Expand description
The keyword arguments of render_scope.
Fields§
§title: Option<String>A title for the panel, as console markup (upstream title).
sort_keys: boolSort the names: __special__ names first, then case-insensitively
(upstream sort_keys, default True).
indent_guides: boolDraw indent guides in the values (upstream indent_guides).
max_length: Option<usize>Abbreviate containers longer than this (upstream max_length).
max_string: Option<usize>Truncate strings longer than this (upstream max_string).
max_depth: Option<usize>Stop at this depth of nesting (upstream max_depth).
overflow: Option<Overflow>How values that do not fit overflow (upstream overflow).
Trait Implementations§
Source§impl Clone for ScopeOptions
impl Clone for ScopeOptions
Source§impl Debug for ScopeOptions
impl Debug for ScopeOptions
Source§impl Default for ScopeOptions
impl Default for ScopeOptions
impl Eq for ScopeOptions
Source§impl PartialEq for ScopeOptions
impl PartialEq for ScopeOptions
impl StructuralPartialEq for ScopeOptions
Auto Trait Implementations§
impl Freeze for ScopeOptions
impl RefUnwindSafe for ScopeOptions
impl Send for ScopeOptions
impl Sync for ScopeOptions
impl Unpin for ScopeOptions
impl UnsafeUnpin for ScopeOptions
impl UnwindSafe for ScopeOptions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.