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