#[repr(C)]pub struct BorderSide {
pub color: Rgba,
pub style: BorderStyle,
}Expand description
The line style and color for the sides of a widget’s border.
Fields§
§color: RgbaLine color.
style: BorderStyleLine style.
Implementations§
Source§impl BorderSide
impl BorderSide
Trait Implementations§
Source§impl Clone for BorderSide
impl Clone for BorderSide
Source§fn clone(&self) -> BorderSide
fn clone(&self) -> BorderSide
Returns a duplicate of the value. Read more
1.0.0 · 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 BorderSide
impl Debug for BorderSide
Source§impl<'de> Deserialize<'de> for BorderSide
impl<'de> Deserialize<'de> for BorderSide
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C: Into<Rgba>, S: Into<BorderStyle>> From<(C, S)> for BorderSide
impl<C: Into<Rgba>, S: Into<BorderStyle>> From<(C, S)> for BorderSide
Source§impl From<BorderSide> for BorderSide
impl From<BorderSide> for BorderSide
Source§fn from(s: BorderSide) -> Self
fn from(s: BorderSide) -> Self
Converts to this type from the input type.
Source§impl From<BorderStyle> for BorderSide
impl From<BorderStyle> for BorderSide
Source§fn from(style: BorderStyle) -> Self
fn from(style: BorderStyle) -> Self
Side transparent black with the style.
This is only useful with BorderStyle::Hidden variant.
Source§impl<C: Into<Rgba>, S: Into<BorderStyle>> IntoVar<BorderSide> for (C, S)
impl<C: Into<Rgba>, S: Into<BorderStyle>> IntoVar<BorderSide> for (C, S)
Source§fn into_var(self) -> Var<BorderSide>
fn into_var(self) -> Var<BorderSide>
(color, style) side.
Source§impl IntoVar<BorderSide> for BorderStyle
impl IntoVar<BorderSide> for BorderStyle
Source§fn into_var(self) -> Var<BorderSide>
fn into_var(self) -> Var<BorderSide>
Side transparent black with the style.
This is only useful with BorderStyle::Hidden variant.
Source§impl IntoVar<BorderSide> for Hsla
impl IntoVar<BorderSide> for Hsla
Source§fn into_var(self) -> Var<BorderSide>
fn into_var(self) -> Var<BorderSide>
Solid color.
Source§impl IntoVar<BorderSide> for Hsva
impl IntoVar<BorderSide> for Hsva
Source§fn into_var(self) -> Var<BorderSide>
fn into_var(self) -> Var<BorderSide>
Solid color.
Source§impl IntoVar<BorderSide> for Rgba
impl IntoVar<BorderSide> for Rgba
Source§fn into_var(self) -> Var<BorderSide>
fn into_var(self) -> Var<BorderSide>
Solid color.
Source§impl PartialEq for BorderSide
impl PartialEq for BorderSide
Source§impl Serialize for BorderSide
impl Serialize for BorderSide
Source§impl Transitionable for BorderSide
impl Transitionable for BorderSide
Source§fn lerp(self, to: &Self, step: EasingStep) -> Self
fn lerp(self, to: &Self, step: EasingStep) -> Self
Sample the linear interpolation from
self -> to by step.impl Copy for BorderSide
impl<C: Into<Rgba>, S: Into<BorderStyle>> IntoValue<BorderSide> for (C, S)
impl IntoValue<BorderSide> for BorderStyle
impl IntoValue<BorderSide> for Hsla
impl IntoValue<BorderSide> for Hsva
impl IntoValue<BorderSide> for Rgba
impl StructuralPartialEq for BorderSide
Auto Trait Implementations§
impl Freeze for BorderSide
impl RefUnwindSafe for BorderSide
impl Send for BorderSide
impl Sync for BorderSide
impl Unpin for BorderSide
impl UnwindSafe for BorderSide
Blanket Implementations§
Source§impl<T> AnyVarValue for T
impl<T> AnyVarValue for T
Source§fn clone_boxed(&self) -> BoxAnyVarValue
fn clone_boxed(&self) -> BoxAnyVarValue
Clone the value.
Source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self and other are equal.Source§fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
fn try_swap(&mut self, other: &mut (dyn AnyVarValue + 'static)) -> bool
Swap value with
other if both are of the same type.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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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