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