[−]Struct gu_base::cli::FORMAT_BASIC
Methods from __Deref<Target = TableFormat>
pub fn get_padding(&self) -> (usize, usize)
pub fn get_padding(&self) -> (usize, usize)
Return a tuple with left and right padding
pub fn get_indent(&self) -> usize
pub fn get_indent(&self) -> usize
Get global indentation in spaces used when rendering a table
pub fn print_line_separator<T>(
&self,
out: &mut T,
col_width: &[usize],
pos: LinePosition
) -> Result<(), Error> where
T: Write + ?Sized,
pub fn print_line_separator<T>(
&self,
out: &mut T,
col_width: &[usize],
pos: LinePosition
) -> Result<(), Error> where
T: Write + ?Sized,
Print a full line separator to out
. col_width
is a slice containing the width of each column
pub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>
pub fn get_column_separator(&self, pos: ColumnPosition) -> Option<char>
Returns the character used to separate columns.
pos
specify if the separator is left/right final or internal to the table
pub fn print_column_separator<T>(
&self,
out: &mut T,
pos: ColumnPosition
) -> Result<(), Error> where
T: Write + ?Sized,
pub fn print_column_separator<T>(
&self,
out: &mut T,
pos: ColumnPosition
) -> Result<(), Error> where
T: Write + ?Sized,
Print a column separator or a table border
Trait Implementations
impl __Deref for FORMAT_BASIC
impl __Deref for FORMAT_BASIC
type Target = TableFormat
The resulting type after dereferencing.
fn deref(&self) -> &TableFormat
fn deref(&self) -> &TableFormat
Dereferences the value.
impl LazyStatic for FORMAT_BASIC
impl LazyStatic for FORMAT_BASIC
fn initialize(lazy: &Self)
fn initialize(lazy: &Self)
Auto Trait Implementations
impl Send for FORMAT_BASIC
impl Send for FORMAT_BASIC
impl Sync for FORMAT_BASIC
impl Sync for FORMAT_BASIC
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Erased for T
impl<T> Erased for T