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