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