pub struct CssPropertyWithConditionsVec {
pub run_destructor: bool,
/* private fields */
}Fields§
§run_destructor: boolWhether to run the destructor on drop (prevents double-free when cloned to C)
Implementations§
Source§impl CssPropertyWithConditionsVec
impl CssPropertyWithConditionsVec
pub fn new() -> CssPropertyWithConditionsVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice( input: &'static [CssPropertyWithConditions], ) -> Self
pub fn from_vec(input: Vec<CssPropertyWithConditions>) -> Self
pub fn iter(&self) -> Iter<'_, CssPropertyWithConditions>
pub fn ptr_as_usize(&self) -> usize
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&CssPropertyWithConditions>
pub fn as_slice(&self) -> &[CssPropertyWithConditions]
Source§impl CssPropertyWithConditionsVec
impl CssPropertyWithConditionsVec
pub fn from_copy_on_write( input: Cow<'static, [CssPropertyWithConditions]>, ) -> CssPropertyWithConditionsVec
Sourcepub fn clone_self(&self) -> Self
pub fn clone_self(&self) -> Self
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Sourcepub fn into_library_owned_vec(self) -> Vec<CssPropertyWithConditions>
pub fn into_library_owned_vec(self) -> Vec<CssPropertyWithConditions>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Source§impl CssPropertyWithConditionsVec
impl CssPropertyWithConditionsVec
Sourcepub fn parse_normal(style: &str) -> Self
pub fn parse_normal(style: &str) -> Self
Parse CSS properties from a string, all with “normal” (unconditional) state
Sourcepub fn parse_hover(style: &str) -> Self
pub fn parse_hover(style: &str) -> Self
Parse CSS properties from a string, all with hover condition
Sourcepub fn parse_active(style: &str) -> Self
pub fn parse_active(style: &str) -> Self
Parse CSS properties from a string, all with active condition
Sourcepub fn parse_focus(style: &str) -> Self
pub fn parse_focus(style: &str) -> Self
Parse CSS properties from a string, all with focus condition
Trait Implementations§
Source§impl AsRef<[CssPropertyWithConditions]> for CssPropertyWithConditionsVec
impl AsRef<[CssPropertyWithConditions]> for CssPropertyWithConditionsVec
Source§fn as_ref(&self) -> &[CssPropertyWithConditions]
fn as_ref(&self) -> &[CssPropertyWithConditions]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CssPropertyWithConditionsVec
impl Clone for CssPropertyWithConditionsVec
Source§impl Debug for CssPropertyWithConditionsVec
impl Debug for CssPropertyWithConditionsVec
Source§impl Drop for CssPropertyWithConditionsVec
impl Drop for CssPropertyWithConditionsVec
Source§impl From<&'static [CssPropertyWithConditions]> for CssPropertyWithConditionsVec
impl From<&'static [CssPropertyWithConditions]> for CssPropertyWithConditionsVec
Source§fn from(
input: &'static [CssPropertyWithConditions],
) -> CssPropertyWithConditionsVec
fn from( input: &'static [CssPropertyWithConditions], ) -> CssPropertyWithConditionsVec
Converts to this type from the input type.
Source§impl From<Vec<CssPropertyWithConditions>> for CssPropertyWithConditionsVec
impl From<Vec<CssPropertyWithConditions>> for CssPropertyWithConditionsVec
Source§fn from(input: Vec<CssPropertyWithConditions>) -> CssPropertyWithConditionsVec
fn from(input: Vec<CssPropertyWithConditions>) -> CssPropertyWithConditionsVec
Converts to this type from the input type.
Source§impl FromIterator<CssPropertyWithConditions> for CssPropertyWithConditionsVec
impl FromIterator<CssPropertyWithConditions> for CssPropertyWithConditionsVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssPropertyWithConditions>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssPropertyWithConditions>,
Creates a value from an iterator. Read more
Source§impl Hash for CssPropertyWithConditionsVec
impl Hash for CssPropertyWithConditionsVec
Source§impl Ord for CssPropertyWithConditionsVec
impl Ord for CssPropertyWithConditionsVec
Source§impl PartialOrd for CssPropertyWithConditionsVec
impl PartialOrd for CssPropertyWithConditionsVec
impl Eq for CssPropertyWithConditionsVec
impl Send for CssPropertyWithConditionsVec
impl Sync for CssPropertyWithConditionsVec
Auto Trait Implementations§
impl Freeze for CssPropertyWithConditionsVec
impl RefUnwindSafe for CssPropertyWithConditionsVec
impl Unpin for CssPropertyWithConditionsVec
impl UnwindSafe for CssPropertyWithConditionsVec
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