#[repr(C)]pub struct ChangedCssPropertyVecSlice {
pub ptr: *const ChangedCssProperty,
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 ChangedCssProperty§len: usizeImplementations§
Source§impl ChangedCssPropertyVecSlice
impl ChangedCssPropertyVecSlice
Sourcepub const fn as_ptr(&self) -> *const ChangedCssProperty
pub const fn as_ptr(&self) -> *const ChangedCssProperty
Returns a pointer to the slice’s data.
Sourcepub fn as_slice(&self) -> &[ChangedCssProperty]
pub fn as_slice(&self) -> &[ChangedCssProperty]
Converts the C-slice to a Rust slice.
Sourcepub fn get(&self, index: usize) -> Option<&ChangedCssProperty>
pub fn get(&self, index: usize) -> Option<&ChangedCssProperty>
Returns a reference to the element at the given index, or None if out of bounds.
Sourcepub fn iter(&self) -> Iter<'_, ChangedCssProperty>
pub fn iter(&self) -> Iter<'_, ChangedCssProperty>
Returns an iterator over the elements.
Trait Implementations§
Source§impl Clone for ChangedCssPropertyVecSlice
impl Clone for ChangedCssPropertyVecSlice
Source§fn clone(&self) -> ChangedCssPropertyVecSlice
fn clone(&self) -> ChangedCssPropertyVecSlice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChangedCssPropertyVecSlice
impl Debug for ChangedCssPropertyVecSlice
impl Copy for ChangedCssPropertyVecSlice
impl Send for ChangedCssPropertyVecSlice
impl Sync for ChangedCssPropertyVecSlice
Auto Trait Implementations§
impl Freeze for ChangedCssPropertyVecSlice
impl RefUnwindSafe for ChangedCssPropertyVecSlice
impl Unpin for ChangedCssPropertyVecSlice
impl UnsafeUnpin for ChangedCssPropertyVecSlice
impl UnwindSafe for ChangedCssPropertyVecSlice
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