pub struct BorderRecipe {
pub width: f32,
pub color: RecipeColor,
pub style: BorderStyle,
pub position: BorderPosition,
pub sides: Option<BorderSides>,
}Fields§
§width: f32§color: RecipeColor§style: BorderStyle§position: BorderPosition§sides: Option<BorderSides>Optional per-side widths. None = a uniform width border on all
four sides (the common case). Some(..) overrides with per-side
widths (e.g. a bottom-only underline).
Implementations§
Source§impl BorderRecipe
impl BorderRecipe
pub fn solid(width: f32, color: impl Into<RecipeColor>) -> Self
Sourcepub fn underline(width: f32, color: impl Into<RecipeColor>) -> Self
pub fn underline(width: f32, color: impl Into<RecipeColor>) -> Self
A bottom-only underline of width in color (M3 / Fluent /
Adwaita filled-field underline). position is Inside.
Trait Implementations§
Source§impl Clone for BorderRecipe
impl Clone for BorderRecipe
Source§fn clone(&self) -> BorderRecipe
fn clone(&self) -> BorderRecipe
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 moreimpl Copy for BorderRecipe
Source§impl Debug for BorderRecipe
impl Debug for BorderRecipe
Source§impl<'de> Deserialize<'de> for BorderRecipe
impl<'de> Deserialize<'de> for BorderRecipe
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 PartialEq for BorderRecipe
impl PartialEq for BorderRecipe
Source§impl Serialize for BorderRecipe
impl Serialize for BorderRecipe
impl StructuralPartialEq for BorderRecipe
Auto Trait Implementations§
impl Freeze for BorderRecipe
impl RefUnwindSafe for BorderRecipe
impl Send for BorderRecipe
impl Sync for BorderRecipe
impl Unpin for BorderRecipe
impl UnsafeUnpin for BorderRecipe
impl UnwindSafe for BorderRecipe
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