pub struct TopStyleValue(pub AutoOr<LengthPercentage>);Expand description
Represents the style value for top as defined in css-position-4.
The physical CSS properties, top, right, bottom, and left, set the inset position of an element relative to the corresponding side of a container determined by the element’s position property.
The grammar is defined as:
auto | <length-percentage>Tuple Fields§
§0: AutoOr<LengthPercentage>Trait Implementations§
Source§impl Clone for TopStyleValue
impl Clone for TopStyleValue
Source§fn clone(&self) -> TopStyleValue
fn clone(&self) -> TopStyleValue
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 TopStyleValue
impl Debug for TopStyleValue
Source§impl Hash for TopStyleValue
impl Hash for TopStyleValue
Source§impl Ord for TopStyleValue
impl Ord for TopStyleValue
Source§fn cmp(&self, other: &TopStyleValue) -> Ordering
fn cmp(&self, other: &TopStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for TopStyleValue
impl<'a> Parse<'a> for TopStyleValue
Source§impl PartialEq for TopStyleValue
impl PartialEq for TopStyleValue
Source§impl PartialOrd for TopStyleValue
impl PartialOrd for TopStyleValue
Source§impl<'a> Peek<'a> for TopStyleValue
impl<'a> Peek<'a> for TopStyleValue
Source§impl ToCursors for TopStyleValue
impl ToCursors for TopStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for TopStyleValue
impl StructuralPartialEq for TopStyleValue
Auto Trait Implementations§
impl Freeze for TopStyleValue
impl RefUnwindSafe for TopStyleValue
impl Send for TopStyleValue
impl Sync for TopStyleValue
impl Unpin for TopStyleValue
impl UnwindSafe for TopStyleValue
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