#[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: Rgba
Line color.
style: BorderStyle
Line 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 copy 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§impl IntoVar<BorderSide> for BorderStyle
impl IntoVar<BorderSide> for BorderStyle
source§fn into_var(self) -> Self::Var
fn into_var(self) -> Self::Var
Side transparent black with the style.
This is only useful with BorderStyle::Hidden
variant.
source§fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>where
Self: Sized,
fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>where
Self: Sized,
Converts into
BoxedVar<T>
. Read moresource§impl IntoVar<BorderSide> for Hsla
impl IntoVar<BorderSide> for Hsla
source§impl IntoVar<BorderSide> for Hsva
impl IntoVar<BorderSide> for Hsva
source§impl IntoVar<BorderSide> for Rgba
impl IntoVar<BorderSide> for Rgba
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 Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Access to mut
dyn Any
methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
Clone the value.
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
Clone the value into a new boxed
LocalVar<Self>
.source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
Gets if
self
equals other
.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
)§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