Struct billboard::BorderComponents
source · pub struct BorderComponents {
pub top_left: String,
pub horizontal: String,
pub top_right: String,
pub vertical: String,
pub bottom_right: String,
pub bottom_left: String,
}
Expand description
BorderComponents
defines the String
s to use when dislaying
the corners and sides of a Billboard
.
Fields
top_left: String
String
to display as the top left corner of a Billboard
border.
This should be one visual character wide.
horizontal: String
String
to repeat as the top and bottom of a Billboard
border.
top_right: String
String
to display as the top right corner of a Billboard
border.
This should be one visual character wide.
vertical: String
String
to repeat as the left and right of a Billboard
border.
bottom_right: String
String
to display as the bottom right corner of a Billboard
border.
This should be one visual character wide.
bottom_left: String
String
to display as the bottom left corner of a Billboard
border.
This should be one visual character wide.
Implementations
sourceimpl BorderComponents
impl BorderComponents
sourcepub fn new(style: BorderStyle) -> BorderComponents
pub fn new(style: BorderStyle) -> BorderComponents
Creates new BorderComponents
from a BorderStyle
.
Trait Implementations
sourceimpl Clone for BorderComponents
impl Clone for BorderComponents
sourcefn clone(&self) -> BorderComponents
fn clone(&self) -> BorderComponents
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BorderComponents
impl Debug for BorderComponents
sourceimpl PartialEq<BorderComponents> for BorderComponents
impl PartialEq<BorderComponents> for BorderComponents
sourcefn eq(&self, other: &BorderComponents) -> bool
fn eq(&self, other: &BorderComponents) -> bool
impl StructuralPartialEq for BorderComponents
Auto Trait Implementations
impl RefUnwindSafe for BorderComponents
impl Send for BorderComponents
impl Sync for BorderComponents
impl Unpin for BorderComponents
impl UnwindSafe for BorderComponents
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more