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