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