pub struct BorderSegments {
pub top: BorderSegment,
pub bottom: BorderSegment,
pub left: BorderSegment,
pub right: BorderSegment,
}Expand description
A collection of border segments representing different parts of a bordered structure.
This struct holds individual BorderSegment instances for each section of the border
Fields§
§top: BorderSegmentThe full top border segment.
bottom: BorderSegmentThe full bottom border segment.
left: BorderSegmentThe full left border segment.
right: BorderSegmentThe full right border segment.
Implementations§
Source§impl BorderSegments
impl BorderSegments
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new set of BorderSegments
§Returns
A BorderSegments instance with all segments initialized at their respective positions.
pub fn from_segment_set(self, set: SegmentSet) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BorderSegments
impl !RefUnwindSafe for BorderSegments
impl !Send for BorderSegments
impl !Sync for BorderSegments
impl Unpin for BorderSegments
impl !UnwindSafe for BorderSegments
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> 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