pub enum CssPropertyValue<T> {
Auto,
None,
Initial,
Inherit,
Exact(T),
}
Variants§
Implementations§
Source§impl<T> CssPropertyValue<T>
impl<T> CssPropertyValue<T>
Sourcepub fn map_property<F: Fn(T) -> U, U>(self, map_fn: F) -> CssPropertyValue<U>
pub fn map_property<F: Fn(T) -> U, U>(self, map_fn: F) -> CssPropertyValue<U>
Transforms a CssPropertyValue<T>
into a CssPropertyValue<U>
by applying a mapping function
pub fn get_property(&self) -> Option<&T>
pub fn get_property_owned(self) -> Option<T>
pub fn is_auto(&self) -> bool
pub fn is_none(&self) -> bool
pub fn is_initial(&self) -> bool
pub fn is_inherit(&self) -> bool
Source§impl<T: Default> CssPropertyValue<T>
impl<T: Default> CssPropertyValue<T>
pub fn get_property_or_default(self) -> Option<T>
Trait Implementations§
Source§impl<T: Clone> Clone for CssPropertyValue<T>
impl<T: Clone> Clone for CssPropertyValue<T>
Source§fn clone(&self) -> CssPropertyValue<T>
fn clone(&self) -> CssPropertyValue<T>
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<T: Debug> Debug for CssPropertyValue<T>
impl<T: Debug> Debug for CssPropertyValue<T>
Source§impl<T: Default> Default for CssPropertyValue<T>
impl<T: Default> Default for CssPropertyValue<T>
Source§impl<T: Display> Display for CssPropertyValue<T>
impl<T: Display> Display for CssPropertyValue<T>
Source§impl<T> From<T> for CssPropertyValue<T>
impl<T> From<T> for CssPropertyValue<T>
Source§impl<T: Hash> Hash for CssPropertyValue<T>
impl<T: Hash> Hash for CssPropertyValue<T>
Source§impl<T: Ord> Ord for CssPropertyValue<T>
impl<T: Ord> Ord for CssPropertyValue<T>
Source§fn cmp(&self, other: &CssPropertyValue<T>) -> Ordering
fn cmp(&self, other: &CssPropertyValue<T>) -> 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<T: PartialEq> PartialEq for CssPropertyValue<T>
impl<T: PartialEq> PartialEq for CssPropertyValue<T>
Source§impl<T: PartialOrd> PartialOrd for CssPropertyValue<T>
impl<T: PartialOrd> PartialOrd for CssPropertyValue<T>
impl<T: Copy> Copy for CssPropertyValue<T>
impl<T: Eq> Eq for CssPropertyValue<T>
impl<T> StructuralPartialEq for CssPropertyValue<T>
Auto Trait Implementations§
impl<T> Freeze for CssPropertyValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for CssPropertyValue<T>where
T: RefUnwindSafe,
impl<T> Send for CssPropertyValue<T>where
T: Send,
impl<T> Sync for CssPropertyValue<T>where
T: Sync,
impl<T> Unpin for CssPropertyValue<T>where
T: Unpin,
impl<T> UnwindSafe for CssPropertyValue<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)