pub enum PropertyIdRef<'a> {
NonCustom(NonCustomPropertyId),
Custom(&'a Name),
}Expand description
Like PropertyId, but with a reference instead of an owned custom property name. Used when a reference to the author-specified property is required, such as with random(). https://drafts.csswg.org/css-values-5/#valdef-random-property-scoped
Variants§
NonCustom(NonCustomPropertyId)
An alias for a shorthand or longhand property.
Custom(&'a Name)
A reference to a custom property name.
Trait Implementations§
Source§impl<'a> Clone for PropertyIdRef<'a>
impl<'a> Clone for PropertyIdRef<'a>
Source§fn clone(&self) -> PropertyIdRef<'a>
fn clone(&self) -> PropertyIdRef<'a>
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 moreSource§impl<'a> Debug for PropertyIdRef<'a>
impl<'a> Debug for PropertyIdRef<'a>
Source§impl<'a> From<&'a Atom<AtomStaticSet>> for PropertyIdRef<'a>
impl<'a> From<&'a Atom<AtomStaticSet>> for PropertyIdRef<'a>
Source§impl<'a> From<&'a PropertyId> for PropertyIdRef<'a>
impl<'a> From<&'a PropertyId> for PropertyIdRef<'a>
Source§fn from(value: &'a PropertyId) -> Self
fn from(value: &'a PropertyId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<NonCustomPropertyId> for PropertyIdRef<'a>
impl<'a> From<NonCustomPropertyId> for PropertyIdRef<'a>
Source§fn from(value: NonCustomPropertyId) -> Self
fn from(value: NonCustomPropertyId) -> Self
Converts to this type from the input type.
impl<'a> Copy for PropertyIdRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for PropertyIdRef<'a>
impl<'a> RefUnwindSafe for PropertyIdRef<'a>
impl<'a> Send for PropertyIdRef<'a>
impl<'a> Sync for PropertyIdRef<'a>
impl<'a> Unpin for PropertyIdRef<'a>
impl<'a> UnsafeUnpin for PropertyIdRef<'a>
impl<'a> UnwindSafe for PropertyIdRef<'a>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert