#[repr(C)]pub struct CssPropertyWithConditionsVecSlice {
pub ptr: *const CssPropertyWithConditions,
pub len: usize,
}Expand description
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
Fields§
§ptr: *const CssPropertyWithConditions§len: usizeImplementations§
Source§impl CssPropertyWithConditionsVecSlice
impl CssPropertyWithConditionsVecSlice
Sourcepub const fn as_ptr(&self) -> *const CssPropertyWithConditions
pub const fn as_ptr(&self) -> *const CssPropertyWithConditions
Returns a pointer to the slice’s data.
Sourcepub fn as_slice(&self) -> &[CssPropertyWithConditions]
pub fn as_slice(&self) -> &[CssPropertyWithConditions]
Converts the C-slice to a Rust slice.
Sourcepub fn get(&self, index: usize) -> Option<&CssPropertyWithConditions>
pub fn get(&self, index: usize) -> Option<&CssPropertyWithConditions>
Returns a reference to the element at the given index, or None if out of bounds.
Sourcepub fn iter(&self) -> Iter<'_, CssPropertyWithConditions>
pub fn iter(&self) -> Iter<'_, CssPropertyWithConditions>
Returns an iterator over the elements.
Trait Implementations§
Source§impl Clone for CssPropertyWithConditionsVecSlice
impl Clone for CssPropertyWithConditionsVecSlice
Source§fn clone(&self) -> CssPropertyWithConditionsVecSlice
fn clone(&self) -> CssPropertyWithConditionsVecSlice
Returns a duplicate 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 moreimpl Copy for CssPropertyWithConditionsVecSlice
impl Send for CssPropertyWithConditionsVecSlice
impl Sync for CssPropertyWithConditionsVecSlice
Auto Trait Implementations§
impl Freeze for CssPropertyWithConditionsVecSlice
impl RefUnwindSafe for CssPropertyWithConditionsVecSlice
impl Unpin for CssPropertyWithConditionsVecSlice
impl UnsafeUnpin for CssPropertyWithConditionsVecSlice
impl UnwindSafe for CssPropertyWithConditionsVecSlice
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