pub struct DecorationLine {
pub under: bool,
pub over: bool,
pub through: bool,
}Expand description
Which rules a run has drawn across it, from
text-decoration-line.
Fields§
§under: boolunderline: a rule under the text.
over: booloverline: a rule over it.
through: boolline-through: a rule across it.
Implementations§
Trait Implementations§
Source§impl Clone for DecorationLine
impl Clone for DecorationLine
Source§fn clone(&self) -> DecorationLine
fn clone(&self) -> DecorationLine
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 DecorationLine
Source§impl Debug for DecorationLine
impl Debug for DecorationLine
Source§impl Default for DecorationLine
impl Default for DecorationLine
Source§fn default() -> DecorationLine
fn default() -> DecorationLine
Returns the “default value” for a type. Read more
impl Eq for DecorationLine
Source§impl Hash for DecorationLine
impl Hash for DecorationLine
Source§impl PartialEq for DecorationLine
impl PartialEq for DecorationLine
Source§impl Serialize for DecorationLine
impl Serialize for DecorationLine
impl StructuralPartialEq for DecorationLine
Auto Trait Implementations§
impl Freeze for DecorationLine
impl RefUnwindSafe for DecorationLine
impl Send for DecorationLine
impl Sync for DecorationLine
impl Unpin for DecorationLine
impl UnsafeUnpin for DecorationLine
impl UnwindSafe for DecorationLine
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§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.