pub struct Shadow { /* private fields */ }
Available on crate feature
std
only.Expand description
The structure represents a shadow of a table.
NOTICE: It uses Margin
therefore it often can’t be combined.
Implementations§
source§impl Shadow
impl Shadow
sourcepub const DEFAULT_FILL: char = '▒'
pub const DEFAULT_FILL: char = '▒'
A default fill character to be used.
sourcepub fn new(size: usize) -> Self
pub fn new(size: usize) -> Self
Construct’s an Shadow
object with default fill Shadow::DEFAULT_FILL
.
It uses space(’ ’) as a default fill character.
To set a custom character you can use Self::set_fill
function.
sourcepub fn set_fill(self, c: char) -> Self
pub fn set_fill(self, c: char) -> Self
The function, sets a characters for the Shadow
to be used.
sourcepub fn set_offset(self, size: usize) -> Self
pub fn set_offset(self, size: usize) -> Self
Set an offset value (default is ‘1’).
sourcepub fn set_bottom(self) -> Self
pub fn set_bottom(self) -> Self
Switch shadow to bottom.
Trait Implementations§
source§impl Ord for Shadow
impl Ord for Shadow
source§impl PartialEq for Shadow
impl PartialEq for Shadow
source§impl PartialOrd for Shadow
impl PartialOrd for Shadow
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<R, D> TableOption<R, ColoredConfig, D> for Shadow
impl<R, D> TableOption<R, ColoredConfig, D> for Shadow
source§fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)
fn change(self, _: &mut R, cfg: &mut ColoredConfig, _: &mut D)
The function modificaties of records and a grid configuration.
source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moreimpl Eq for Shadow
impl StructuralEq for Shadow
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnwindSafe for Shadow
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