pub struct GridTrackSizingVec {
pub run_destructor: bool,
/* private fields */
}Fields§
§run_destructor: boolWhether to run the destructor on drop (prevents double-free when cloned to C)
Implementations§
Source§impl GridTrackSizingVec
impl GridTrackSizingVec
pub fn new() -> GridTrackSizingVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [GridTrackSizing]) -> Self
pub fn from_vec(input: Vec<GridTrackSizing>) -> Self
pub fn iter(&self) -> Iter<'_, GridTrackSizing>
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<&GridTrackSizing>
pub fn as_slice(&self) -> &[GridTrackSizing]
Source§impl GridTrackSizingVec
impl GridTrackSizingVec
pub fn from_copy_on_write( input: Cow<'static, [GridTrackSizing]>, ) -> GridTrackSizingVec
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<GridTrackSizing>
pub fn into_library_owned_vec(self) -> Vec<GridTrackSizing>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Source§impl GridTrackSizingVec
impl GridTrackSizingVec
pub fn as_mut_slice_extended<'a>(&mut self) -> &'a mut [GridTrackSizing]
pub fn as_mut_ptr(&mut self) -> *mut GridTrackSizing
pub fn sort_by<F: FnMut(&GridTrackSizing, &GridTrackSizing) -> Ordering>( &mut self, compare: F, )
pub fn push(&mut self, value: GridTrackSizing)
pub fn insert(&mut self, index: usize, element: GridTrackSizing)
pub fn remove(&mut self, index: usize)
pub fn pop(&mut self) -> Option<GridTrackSizing>
pub fn iter_mut(&mut self) -> IterMut<'_, GridTrackSizing>
pub fn into_iter(self) -> IntoIter<GridTrackSizing>
pub fn append(&mut self, other: &mut Self)
pub fn reserve(&mut self, additional: usize)
pub fn truncate(&mut self, len: usize)
pub fn retain<F>(&mut self, f: F)
Trait Implementations§
Source§impl AsMut<[GridTrackSizing]> for GridTrackSizingVec
impl AsMut<[GridTrackSizing]> for GridTrackSizingVec
Source§fn as_mut(&mut self) -> &mut [GridTrackSizing]
fn as_mut(&mut self) -> &mut [GridTrackSizing]
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<[GridTrackSizing]> for GridTrackSizingVec
impl AsRef<[GridTrackSizing]> for GridTrackSizingVec
Source§fn as_ref(&self) -> &[GridTrackSizing]
fn as_ref(&self) -> &[GridTrackSizing]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for GridTrackSizingVec
impl Clone for GridTrackSizingVec
Source§impl Debug for GridTrackSizingVec
impl Debug for GridTrackSizingVec
Source§impl Default for GridTrackSizingVec
impl Default for GridTrackSizingVec
Source§impl Drop for GridTrackSizingVec
impl Drop for GridTrackSizingVec
Source§impl Extend<GridTrackSizing> for GridTrackSizingVec
impl Extend<GridTrackSizing> for GridTrackSizingVec
Source§fn extend<T: IntoIterator<Item = GridTrackSizing>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = GridTrackSizing>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl From<&'static [GridTrackSizing]> for GridTrackSizingVec
impl From<&'static [GridTrackSizing]> for GridTrackSizingVec
Source§fn from(input: &'static [GridTrackSizing]) -> GridTrackSizingVec
fn from(input: &'static [GridTrackSizing]) -> GridTrackSizingVec
Converts to this type from the input type.
Source§impl From<GridTrackSizingVec> for Vec<GridTrackSizing>
impl From<GridTrackSizingVec> for Vec<GridTrackSizing>
Source§fn from(input: GridTrackSizingVec) -> Vec<GridTrackSizing>
fn from(input: GridTrackSizingVec) -> Vec<GridTrackSizing>
Converts to this type from the input type.
Source§impl From<Vec<GridTrackSizing>> for GridTrackSizingVec
impl From<Vec<GridTrackSizing>> for GridTrackSizingVec
Source§fn from(input: Vec<GridTrackSizing>) -> GridTrackSizingVec
fn from(input: Vec<GridTrackSizing>) -> GridTrackSizingVec
Converts to this type from the input type.
Source§impl FromIterator<GridTrackSizing> for GridTrackSizingVec
impl FromIterator<GridTrackSizing> for GridTrackSizingVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = GridTrackSizing>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = GridTrackSizing>,
Creates a value from an iterator. Read more
Source§impl Hash for GridTrackSizingVec
impl Hash for GridTrackSizingVec
Source§impl Ord for GridTrackSizingVec
impl Ord for GridTrackSizingVec
Source§impl PartialEq for GridTrackSizingVec
impl PartialEq for GridTrackSizingVec
Source§impl PartialOrd for GridTrackSizingVec
impl PartialOrd for GridTrackSizingVec
impl Eq for GridTrackSizingVec
impl Send for GridTrackSizingVec
impl Sync for GridTrackSizingVec
Auto Trait Implementations§
impl Freeze for GridTrackSizingVec
impl RefUnwindSafe for GridTrackSizingVec
impl Unpin for GridTrackSizingVec
impl UnwindSafe for GridTrackSizingVec
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