Struct ptree::print_config::IndentChars
source · [−]pub struct IndentChars {
pub down_and_right: String,
pub down: String,
pub turn_right: String,
pub right: String,
pub empty: String,
}
Expand description
Set of characters use to draw indentation lines (branches)
Fields
down_and_right: String
Character for pointing down and right (├
).
down: String
Character for pointing straight down (|
).
turn_right: String
Character for turning from down to right (└
).
right: String
Character for pointing right (─
).
empty: String
Empty character (
).
Trait Implementations
sourceimpl Clone for IndentChars
impl Clone for IndentChars
sourcefn clone(&self) -> IndentChars
fn clone(&self) -> IndentChars
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 IndentChars
impl Debug for IndentChars
sourceimpl<'de> Deserialize<'de> for IndentChars
impl<'de> Deserialize<'de> for IndentChars
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 FromStr for IndentChars
impl FromStr for IndentChars
sourceimpl PartialEq<IndentChars> for IndentChars
impl PartialEq<IndentChars> for IndentChars
sourcefn eq(&self, other: &IndentChars) -> bool
fn eq(&self, other: &IndentChars) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IndentChars) -> bool
fn ne(&self, other: &IndentChars) -> bool
This method tests for !=
.
sourceimpl Serialize for IndentChars
impl Serialize for IndentChars
impl Eq for IndentChars
impl StructuralEq for IndentChars
impl StructuralPartialEq for IndentChars
Auto Trait Implementations
impl RefUnwindSafe for IndentChars
impl Send for IndentChars
impl Sync for IndentChars
impl Unpin for IndentChars
impl UnwindSafe for IndentChars
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more