pub struct BorderTheme {
pub borders: Borders,
pub border_type: BorderType,
pub border_style: Style,
}Expand description
Wraps all the defining attributes of a border
Fields§
§borders: BordersThe borders of the block
border_type: BorderTypeThe type of border
border_style: StyleThe style of the border
Implementations§
Source§impl BorderTheme
impl BorderTheme
pub const fn new( borders: Borders, border_type: BorderType, border_style: Style, ) -> BorderTheme
Trait Implementations§
Source§impl Clone for BorderTheme
impl Clone for BorderTheme
Source§fn clone(&self) -> BorderTheme
fn clone(&self) -> BorderTheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BorderTheme
impl Debug for BorderTheme
Source§impl Default for BorderTheme
impl Default for BorderTheme
Source§impl From<(Borders, BorderType, Style)> for BorderTheme
impl From<(Borders, BorderType, Style)> for BorderTheme
Source§impl From<BorderTheme> for (Borders, BorderType, Style)
impl From<BorderTheme> for (Borders, BorderType, Style)
Source§fn from(border_theme: BorderTheme) -> Self
fn from(border_theme: BorderTheme) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BorderTheme
impl PartialEq for BorderTheme
impl StructuralPartialEq for BorderTheme
Auto Trait Implementations§
impl Freeze for BorderTheme
impl RefUnwindSafe for BorderTheme
impl Send for BorderTheme
impl Sync for BorderTheme
impl Unpin for BorderTheme
impl UnsafeUnpin for BorderTheme
impl UnwindSafe for BorderTheme
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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