Struct style::values::CustomIdent
source · #[repr(C)]pub struct CustomIdent(pub Atom);
Expand description
Tuple Fields§
§0: Atom
Implementations§
source§impl CustomIdent
impl CustomIdent
sourcepub fn parse<'i, 't>(
input: &mut Parser<'i, 't>,
invalid: &[&str],
) -> Result<Self, ParseError<'i>>
pub fn parse<'i, 't>( input: &mut Parser<'i, 't>, invalid: &[&str], ) -> Result<Self, ParseError<'i>>
Parse a
TODO(zrhoffman, bug 1844501): Use CustomIdent::parse in more places instead of CustomIdent::from_ident.
sourcepub fn from_ident<'i>(
location: SourceLocation,
ident: &CowRcStr<'i>,
excluding: &[&str],
) -> Result<Self, ParseError<'i>>
pub fn from_ident<'i>( location: SourceLocation, ident: &CowRcStr<'i>, excluding: &[&str], ) -> Result<Self, ParseError<'i>>
Parse an already-tokenizer identifier
fn is_valid(ident: &str, excluding: &[&str]) -> bool
Trait Implementations§
source§impl Clone for CustomIdent
impl Clone for CustomIdent
source§fn clone(&self) -> CustomIdent
fn clone(&self) -> CustomIdent
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 CustomIdent
impl Debug for CustomIdent
source§impl Default for CustomIdent
impl Default for CustomIdent
source§fn default() -> CustomIdent
fn default() -> CustomIdent
Returns the “default value” for a type. Read more
source§impl Hash for CustomIdent
impl Hash for CustomIdent
source§impl MallocSizeOf for CustomIdent
impl MallocSizeOf for CustomIdent
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl PartialEq for CustomIdent
impl PartialEq for CustomIdent
source§fn eq(&self, other: &CustomIdent) -> bool
fn eq(&self, other: &CustomIdent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SpecifiedValueInfo for CustomIdent
impl SpecifiedValueInfo for CustomIdent
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
source§impl ToAnimatedValue for CustomIdent
impl ToAnimatedValue for CustomIdent
§type AnimatedValue = CustomIdent
type AnimatedValue = CustomIdent
The type of the animated value.
source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
source§fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
source§impl ToComputedValue for CustomIdent
impl ToComputedValue for CustomIdent
§type ComputedValue = CustomIdent
type ComputedValue = CustomIdent
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl ToCss for CustomIdent
impl ToCss for CustomIdent
source§impl ToResolvedValue for CustomIdent
impl ToResolvedValue for CustomIdent
§type ResolvedValue = CustomIdent
type ResolvedValue = CustomIdent
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
source§impl ToShmem for CustomIdent
impl ToShmem for CustomIdent
impl Eq for CustomIdent
impl StructuralPartialEq for CustomIdent
Auto Trait Implementations§
impl Freeze for CustomIdent
impl RefUnwindSafe for CustomIdent
impl Send for CustomIdent
impl Sync for CustomIdent
impl Unpin for CustomIdent
impl UnwindSafe for CustomIdent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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