pub struct Resolved<'a> { /* private fields */ }Expand description
Custom properties with every var() in them substituted. A name that
maps to None holds the guaranteed-invalid value.
Implementations§
Source§impl<'a> Resolved<'a>
impl<'a> Resolved<'a>
Sourcepub fn from_values(
values: impl IntoIterator<Item = (String, Option<Vec<ComponentValue<'a>>>)>,
) -> Resolved<'a>
pub fn from_values( values: impl IntoIterator<Item = (String, Option<Vec<ComponentValue<'a>>>)>, ) -> Resolved<'a>
Resolved properties from values worked out already, as a parent’s
are by the time its children are styled. None is the
guaranteed-invalid value.
Sourcepub fn iter(
&self,
) -> impl Iterator<Item = (&str, Option<&[ComponentValue<'a>]>)>
pub fn iter( &self, ) -> impl Iterator<Item = (&str, Option<&[ComponentValue<'a>]>)>
Every property here and its value.
Sourcepub fn get(&self, name: &str) -> Option<&[ComponentValue<'a>]>
pub fn get(&self, name: &str) -> Option<&[ComponentValue<'a>]>
A resolved custom property’s value; None if it’s guaranteed-invalid
or not there at all.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Resolved<'a>
impl<'a> Freeze for Resolved<'a>
impl<'a> Move for Resolved<'a>
impl<'a> RefUnwindSafe for Resolved<'a>
impl<'a> Send for Resolved<'a>
impl<'a> Sync for Resolved<'a>
impl<'a> Unpin for Resolved<'a>
impl<'a> UnsafeUnpin for Resolved<'a>
impl<'a> UnwindSafe for Resolved<'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