pub struct OutlineSpec {
pub width: f32,
pub color: Rgba,
pub offset: f32,
}Expand description
Parsed focus-outline="<width> <#color>" (plus the CSS
outline-offset folded in at spawn).
Fields§
§width: f32Stroke width in pixels.
color: RgbaStroke color.
offset: f32Gap between the border box edge and the inner edge of the ring
(CSS outline-offset). Default 0.
Trait Implementations§
Source§impl Clone for OutlineSpec
impl Clone for OutlineSpec
Source§fn clone(&self) -> OutlineSpec
fn clone(&self) -> OutlineSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutlineSpec
impl Debug for OutlineSpec
Source§impl<'de> Deserialize<'de> for OutlineSpec
impl<'de> Deserialize<'de> for OutlineSpec
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 From<OutlineSpec> for FocusOutlineSpec
impl From<OutlineSpec> for FocusOutlineSpec
Source§fn from(spec: OutlineSpec) -> Self
fn from(spec: OutlineSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutlineSpec
impl PartialEq for OutlineSpec
Source§fn eq(&self, other: &OutlineSpec) -> bool
fn eq(&self, other: &OutlineSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OutlineSpec
impl Serialize for OutlineSpec
impl Copy for OutlineSpec
impl StructuralPartialEq for OutlineSpec
Auto Trait Implementations§
impl Freeze for OutlineSpec
impl RefUnwindSafe for OutlineSpec
impl Send for OutlineSpec
impl Sync for OutlineSpec
impl Unpin for OutlineSpec
impl UnsafeUnpin for OutlineSpec
impl UnwindSafe for OutlineSpec
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> 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>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.