#[repr(C)]pub struct NormalizedLinearColorStopVec { /* private fields */ }
Implementations§
Source§impl NormalizedLinearColorStopVec
impl NormalizedLinearColorStopVec
pub fn new() -> NormalizedLinearColorStopVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice( input: &'static [NormalizedLinearColorStop], ) -> Self
pub fn from_vec(input: Vec<NormalizedLinearColorStop>) -> Self
pub fn iter(&self) -> Iter<'_, NormalizedLinearColorStop>
pub fn ptr_as_usize(&self) -> usize
pub const fn len(&self) -> usize
pub const fn capacity(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, index: usize) -> Option<&NormalizedLinearColorStop>
pub fn as_slice(&self) -> &[NormalizedLinearColorStop]
Source§impl NormalizedLinearColorStopVec
impl NormalizedLinearColorStopVec
pub fn from_copy_on_write( input: Cow<'static, [NormalizedLinearColorStop]>, ) -> NormalizedLinearColorStopVec
Sourcepub fn clone_self(&self) -> Self
pub fn clone_self(&self) -> Self
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Sourcepub fn into_library_owned_vec(self) -> Vec<NormalizedLinearColorStop>
pub fn into_library_owned_vec(self) -> Vec<NormalizedLinearColorStop>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Trait Implementations§
Source§impl AsRef<[NormalizedLinearColorStop]> for NormalizedLinearColorStopVec
impl AsRef<[NormalizedLinearColorStop]> for NormalizedLinearColorStopVec
Source§fn as_ref(&self) -> &[NormalizedLinearColorStop]
fn as_ref(&self) -> &[NormalizedLinearColorStop]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for NormalizedLinearColorStopVec
impl Clone for NormalizedLinearColorStopVec
Source§impl Debug for NormalizedLinearColorStopVec
impl Debug for NormalizedLinearColorStopVec
Source§impl Drop for NormalizedLinearColorStopVec
impl Drop for NormalizedLinearColorStopVec
Source§impl From<&'static [NormalizedLinearColorStop]> for NormalizedLinearColorStopVec
impl From<&'static [NormalizedLinearColorStop]> for NormalizedLinearColorStopVec
Source§fn from(
input: &'static [NormalizedLinearColorStop],
) -> NormalizedLinearColorStopVec
fn from( input: &'static [NormalizedLinearColorStop], ) -> NormalizedLinearColorStopVec
Converts to this type from the input type.
Source§impl From<Vec<NormalizedLinearColorStop>> for NormalizedLinearColorStopVec
impl From<Vec<NormalizedLinearColorStop>> for NormalizedLinearColorStopVec
Source§fn from(input: Vec<NormalizedLinearColorStop>) -> NormalizedLinearColorStopVec
fn from(input: Vec<NormalizedLinearColorStop>) -> NormalizedLinearColorStopVec
Converts to this type from the input type.
Source§impl FromIterator<NormalizedLinearColorStop> for NormalizedLinearColorStopVec
impl FromIterator<NormalizedLinearColorStop> for NormalizedLinearColorStopVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = NormalizedLinearColorStop>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = NormalizedLinearColorStop>,
Creates a value from an iterator. Read more
Source§impl Hash for NormalizedLinearColorStopVec
impl Hash for NormalizedLinearColorStopVec
Source§impl Ord for NormalizedLinearColorStopVec
impl Ord for NormalizedLinearColorStopVec
Source§impl PartialOrd for NormalizedLinearColorStopVec
impl PartialOrd for NormalizedLinearColorStopVec
impl Eq for NormalizedLinearColorStopVec
impl Send for NormalizedLinearColorStopVec
impl Sync for NormalizedLinearColorStopVec
Auto Trait Implementations§
impl Freeze for NormalizedLinearColorStopVec
impl RefUnwindSafe for NormalizedLinearColorStopVec
impl Unpin for NormalizedLinearColorStopVec
impl UnwindSafe for NormalizedLinearColorStopVec
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