pub struct Shadow { /* private fields */ }
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(&mut self, c: char) -> &mut Self
pub fn set_fill(&mut self, c: char) -> &mut Self
The function, sets a characters for the Shadow
to be used.
Sourcepub fn set_offset(&mut self, size: usize) -> &mut Self
pub fn set_offset(&mut self, size: usize) -> &mut Self
Set an offset value (default is ‘1’).
Sourcepub fn set_bottom(&mut self) -> &mut Self
pub fn set_bottom(&mut self) -> &mut Self
Switch shadow to bottom.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shadow
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