Struct ori_core::StyleSpecificity
source · pub struct StyleSpecificity {
pub class: u16,
pub tag: u16,
}
Fields§
§class: u16
§tag: u16
Implementations§
Trait Implementations§
source§impl Add<StyleSpecificity> for StyleSpecificity
impl Add<StyleSpecificity> for StyleSpecificity
source§impl AddAssign<StyleSpecificity> for StyleSpecificity
impl AddAssign<StyleSpecificity> for StyleSpecificity
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl Clone for StyleSpecificity
impl Clone for StyleSpecificity
source§fn clone(&self) -> StyleSpecificity
fn clone(&self) -> StyleSpecificity
Returns a copy 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 StyleSpecificity
impl Debug for StyleSpecificity
source§impl Default for StyleSpecificity
impl Default for StyleSpecificity
source§fn default() -> StyleSpecificity
fn default() -> StyleSpecificity
Returns the “default value” for a type. Read more
source§impl Ord for StyleSpecificity
impl Ord for StyleSpecificity
source§impl PartialEq<StyleSpecificity> for StyleSpecificity
impl PartialEq<StyleSpecificity> for StyleSpecificity
source§fn eq(&self, other: &StyleSpecificity) -> bool
fn eq(&self, other: &StyleSpecificity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StyleSpecificity> for StyleSpecificity
impl PartialOrd<StyleSpecificity> for StyleSpecificity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StyleSpecificity
impl Eq for StyleSpecificity
impl StructuralEq for StyleSpecificity
impl StructuralPartialEq for StyleSpecificity
Auto Trait Implementations§
impl RefUnwindSafe for StyleSpecificity
impl Send for StyleSpecificity
impl Sync for StyleSpecificity
impl Unpin for StyleSpecificity
impl UnwindSafe for StyleSpecificity
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere R: Read + ReadEndian<P>, P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.source§impl<T> Styleable<T> for T
impl<T> Styleable<T> for T
source§fn styled(self) -> Styled<T>
fn styled(self) -> Styled<T>
Converts the
self
into a Styled<Self>
value.source§fn attr_trans(
self,
key: &str,
value: impl Into<StyleAttributeValue>,
transition: impl Into<StyleTransition>
) -> Styled<T>
fn attr_trans( self, key: &str, value: impl Into<StyleAttributeValue>, transition: impl Into<StyleTransition> ) -> Styled<T>
Adds an attribute with a transition.