pub struct CssDeclarationVec { /* private fields */ }Implementations§
Source§impl CssDeclarationVec
impl CssDeclarationVec
pub fn new() -> CssDeclarationVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [CssDeclaration]) -> Self
pub fn from_vec(input: Vec<CssDeclaration>) -> Self
pub fn iter(&self) -> Iter<'_, CssDeclaration>
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<&CssDeclaration>
pub fn as_slice(&self) -> &[CssDeclaration]
Source§impl CssDeclarationVec
impl CssDeclarationVec
pub fn as_mut_slice_extended<'a>(&mut self) -> &'a mut [CssDeclaration]
pub fn as_mut_ptr(&mut self) -> *mut CssDeclaration
pub fn sort_by<F: FnMut(&CssDeclaration, &CssDeclaration) -> Ordering>( &mut self, compare: F, )
pub fn push(&mut self, value: CssDeclaration)
pub fn insert(&mut self, index: usize, element: CssDeclaration)
pub fn remove(&mut self, index: usize)
pub fn pop(&mut self) -> Option<CssDeclaration>
pub fn iter_mut(&mut self) -> IterMut<'_, CssDeclaration>
pub fn into_iter(self) -> IntoIter<CssDeclaration>
pub fn append(&mut self, other: &mut Self)
pub fn reserve(&mut self, additional: usize)
pub fn truncate(&mut self, len: usize)
pub fn retain<F>(&mut self, f: F)
Source§impl CssDeclarationVec
impl CssDeclarationVec
pub fn from_copy_on_write( input: Cow<'static, [CssDeclaration]>, ) -> CssDeclarationVec
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<CssDeclaration>
pub fn into_library_owned_vec(self) -> Vec<CssDeclaration>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Trait Implementations§
Source§impl AsMut<[CssDeclaration]> for CssDeclarationVec
impl AsMut<[CssDeclaration]> for CssDeclarationVec
Source§fn as_mut(&mut self) -> &mut [CssDeclaration]
fn as_mut(&mut self) -> &mut [CssDeclaration]
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<[CssDeclaration]> for CssDeclarationVec
impl AsRef<[CssDeclaration]> for CssDeclarationVec
Source§fn as_ref(&self) -> &[CssDeclaration]
fn as_ref(&self) -> &[CssDeclaration]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CssDeclarationVec
impl Clone for CssDeclarationVec
Source§impl Debug for CssDeclarationVec
impl Debug for CssDeclarationVec
Source§impl Default for CssDeclarationVec
impl Default for CssDeclarationVec
Source§impl Drop for CssDeclarationVec
impl Drop for CssDeclarationVec
Source§impl Extend<CssDeclaration> for CssDeclarationVec
impl Extend<CssDeclaration> for CssDeclarationVec
Source§fn extend<T: IntoIterator<Item = CssDeclaration>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = CssDeclaration>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<&'static [CssDeclaration]> for CssDeclarationVec
impl From<&'static [CssDeclaration]> for CssDeclarationVec
Source§fn from(input: &'static [CssDeclaration]) -> CssDeclarationVec
fn from(input: &'static [CssDeclaration]) -> CssDeclarationVec
Converts to this type from the input type.
Source§impl From<CssDeclarationVec> for Vec<CssDeclaration>
impl From<CssDeclarationVec> for Vec<CssDeclaration>
Source§fn from(input: CssDeclarationVec) -> Vec<CssDeclaration>
fn from(input: CssDeclarationVec) -> Vec<CssDeclaration>
Converts to this type from the input type.
Source§impl From<Vec<CssDeclaration>> for CssDeclarationVec
impl From<Vec<CssDeclaration>> for CssDeclarationVec
Source§fn from(input: Vec<CssDeclaration>) -> CssDeclarationVec
fn from(input: Vec<CssDeclaration>) -> CssDeclarationVec
Converts to this type from the input type.
Source§impl FromIterator<CssDeclaration> for CssDeclarationVec
impl FromIterator<CssDeclaration> for CssDeclarationVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssDeclaration>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CssDeclaration>,
Creates a value from an iterator. Read more
Source§impl Hash for CssDeclarationVec
impl Hash for CssDeclarationVec
Source§impl Ord for CssDeclarationVec
impl Ord for CssDeclarationVec
Source§impl PartialEq for CssDeclarationVec
impl PartialEq for CssDeclarationVec
Source§impl PartialOrd for CssDeclarationVec
impl PartialOrd for CssDeclarationVec
impl Eq for CssDeclarationVec
impl Send for CssDeclarationVec
impl Sync for CssDeclarationVec
Auto Trait Implementations§
impl Freeze for CssDeclarationVec
impl RefUnwindSafe for CssDeclarationVec
impl Unpin for CssDeclarationVec
impl UnwindSafe for CssDeclarationVec
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