Struct ptree::print_config::StaticIndentChars
source · [−]pub struct StaticIndentChars {
pub down_and_right: &'static str,
pub down: &'static str,
pub turn_right: &'static str,
pub right: &'static str,
pub empty: &'static str,
}
Expand description
Set of characters use to draw indentation lines (branches)
Fields
down_and_right: &'static str
Character for pointing down and right (├
).
down: &'static str
Character for pointing straight down (|
).
turn_right: &'static str
Character for turning from down to right (└
).
right: &'static str
Character for pointing right (─
).
empty: &'static str
Empty character (
).
Trait Implementations
sourceimpl Clone for StaticIndentChars
impl Clone for StaticIndentChars
sourcefn clone(&self) -> StaticIndentChars
fn clone(&self) -> StaticIndentChars
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StaticIndentChars
impl Debug for StaticIndentChars
sourceimpl From<StaticIndentChars> for IndentChars
impl From<StaticIndentChars> for IndentChars
sourcefn from(s: StaticIndentChars) -> IndentChars
fn from(s: StaticIndentChars) -> IndentChars
Converts to this type from the input type.
sourceimpl PartialEq<StaticIndentChars> for StaticIndentChars
impl PartialEq<StaticIndentChars> for StaticIndentChars
sourcefn eq(&self, other: &StaticIndentChars) -> bool
fn eq(&self, other: &StaticIndentChars) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StaticIndentChars) -> bool
fn ne(&self, other: &StaticIndentChars) -> bool
This method tests for !=
.
impl Copy for StaticIndentChars
impl Eq for StaticIndentChars
impl StructuralEq for StaticIndentChars
impl StructuralPartialEq for StaticIndentChars
Auto Trait Implementations
impl RefUnwindSafe for StaticIndentChars
impl Send for StaticIndentChars
impl Sync for StaticIndentChars
impl Unpin for StaticIndentChars
impl UnwindSafe for StaticIndentChars
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more