Struct ratatui_block::block_connect::BlockConnect
source · pub struct BlockConnect { /* private fields */ }Expand description
Add a connection point to an existing border.
This widget can render any BorderSymbol from the given BorderSymbolSet. The exact placement is up to the caller, it renders the glyph at (area.x, area.y).
Implementations§
source§impl BlockConnect
impl BlockConnect
sourcepub fn border_style(self, style: Style) -> Self
pub fn border_style(self, style: Style) -> Self
Border style for the border.
sourcepub fn border_type(self, border: BorderType) -> Self
pub fn border_type(self, border: BorderType) -> Self
Sets the border type used.
sourcepub fn border_set(self, border_set: Box<dyn BorderSymbolSet>) -> Self
pub fn border_set(self, border_set: Box<dyn BorderSymbolSet>) -> Self
Use a BorderSymbolSet.
sourcepub fn symbol(self, symbol: BorderSymbol) -> Self
pub fn symbol(self, symbol: BorderSymbol) -> Self
What kind of symbol.
Trait Implementations§
source§impl Clone for BlockConnect
impl Clone for BlockConnect
source§impl Default for BlockConnect
impl Default for BlockConnect
Auto Trait Implementations§
impl Freeze for BlockConnect
impl !RefUnwindSafe for BlockConnect
impl !Send for BlockConnect
impl !Sync for BlockConnect
impl Unpin for BlockConnect
impl !UnwindSafe for BlockConnect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more