#[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
Sourcepub fn new<C, S>(color: C, style: S) -> BorderSide
pub fn new<C, S>(color: C, style: S) -> BorderSide
New border side from color and style value.
Sourcepub fn double<C>(color: C) -> BorderSide
pub fn double<C>(color: C) -> BorderSide
New border side with Double style.
Sourcepub fn dotted<C>(color: C) -> BorderSide
pub fn dotted<C>(color: C) -> BorderSide
New border side with Dotted style.
Sourcepub fn dashed<C>(color: C) -> BorderSide
pub fn dashed<C>(color: C) -> BorderSide
New border side with Dashed style.
Sourcepub fn groove<C>(color: C) -> BorderSide
pub fn groove<C>(color: C) -> BorderSide
New border side with Groove style.
Sourcepub fn outset<C>(color: C) -> BorderSide
pub fn outset<C>(color: C) -> BorderSide
New border side with Outset style.
New border side with Hidden style and transparent color.
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 Default for BorderSide
impl Default for BorderSide
Source§fn default() -> BorderSide
fn default() -> BorderSide
Returns hidden.
Source§impl<'de> Deserialize<'de> for BorderSide
impl<'de> Deserialize<'de> for BorderSide
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorderSide, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BorderSide, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<C, S> From<(C, S)> for BorderSide
impl<C, S> From<(C, S)> for BorderSide
Source§fn from(_: (C, S)) -> BorderSide
fn from(_: (C, S)) -> BorderSide
(color, style) side.
Source§impl From<BorderStyle> for BorderSide
impl From<BorderStyle> for BorderSide
Source§fn from(style: BorderStyle) -> BorderSide
fn from(style: BorderStyle) -> BorderSide
Side transparent black with the style.
This is only useful with BorderStyle::Hidden variant.
Source§impl From<Hsla> for BorderSide
impl From<Hsla> for BorderSide
Source§fn from(color: Hsla) -> BorderSide
fn from(color: Hsla) -> BorderSide
Solid color.
Source§impl From<Hsva> for BorderSide
impl From<Hsva> for BorderSide
Source§fn from(color: Hsva) -> BorderSide
fn from(color: Hsva) -> BorderSide
Solid color.
Source§impl From<Rgba> for BorderSide
impl From<Rgba> for BorderSide
Source§fn from(color: Rgba) -> BorderSide
fn from(color: Rgba) -> BorderSide
Solid color.
Source§impl<C, S> IntoVar<BorderSide> for (C, S)
impl<C, S> 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§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Transitionable for BorderSide
impl Transitionable for BorderSide
Source§fn lerp(self, to: &BorderSide, step: Factor) -> BorderSide
fn lerp(self, to: &BorderSide, step: Factor) -> BorderSide
Sample the linear interpolation from
self -> to by step.impl Copy for BorderSide
impl<C, S> 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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FsChangeNote for T
impl<T> FsChangeNote for T
§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> 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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().