pub struct BorderDecoration {
pub decoration_type: DecorationType,
pub style: Option<String>,
}Expand description
Decoration configuration for text or image decorations.
Fields§
§decoration_type: DecorationTypeType of decoration (text or image)
style: Option<String>Optional CSS style string
Implementations§
Trait Implementations§
Source§impl Clone for BorderDecoration
impl Clone for BorderDecoration
Source§fn clone(&self) -> BorderDecoration
fn clone(&self) -> BorderDecoration
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 BorderDecoration
impl Debug for BorderDecoration
Source§impl PartialEq for BorderDecoration
impl PartialEq for BorderDecoration
impl StructuralPartialEq for BorderDecoration
Auto Trait Implementations§
impl Freeze for BorderDecoration
impl RefUnwindSafe for BorderDecoration
impl Send for BorderDecoration
impl Sync for BorderDecoration
impl Unpin for BorderDecoration
impl UnsafeUnpin for BorderDecoration
impl UnwindSafe for BorderDecoration
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,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.