pub struct LayoutRectVec { /* private fields */ }Implementations§
Source§impl LayoutRectVec
impl LayoutRectVec
pub fn new() -> LayoutRectVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [LayoutRect]) -> Self
pub fn from_vec(input: Vec<LayoutRect>) -> Self
pub fn iter(&self) -> Iter<'_, LayoutRect>
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<&LayoutRect>
pub fn as_slice(&self) -> &[LayoutRect]
Source§impl LayoutRectVec
impl LayoutRectVec
pub fn from_copy_on_write(input: Cow<'static, [LayoutRect]>) -> LayoutRectVec
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<LayoutRect>
pub fn into_library_owned_vec(self) -> Vec<LayoutRect>
NOTE: CLONES the memory if the memory is external or &’static Moves the memory out if the memory is library-allocated
Source§impl LayoutRectVec
impl LayoutRectVec
pub fn as_mut_slice_extended<'a>(&mut self) -> &'a mut [LayoutRect]
pub fn as_mut_ptr(&mut self) -> *mut LayoutRect
pub fn sort_by<F: FnMut(&LayoutRect, &LayoutRect) -> Ordering>( &mut self, compare: F, )
pub fn push(&mut self, value: LayoutRect)
pub fn insert(&mut self, index: usize, element: LayoutRect)
pub fn remove(&mut self, index: usize)
pub fn pop(&mut self) -> Option<LayoutRect>
pub fn iter_mut(&mut self) -> IterMut<'_, LayoutRect>
pub fn into_iter(self) -> IntoIter<LayoutRect>
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<[LayoutRect]> for LayoutRectVec
impl AsMut<[LayoutRect]> for LayoutRectVec
Source§fn as_mut(&mut self) -> &mut [LayoutRect]
fn as_mut(&mut self) -> &mut [LayoutRect]
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<[LayoutRect]> for LayoutRectVec
impl AsRef<[LayoutRect]> for LayoutRectVec
Source§fn as_ref(&self) -> &[LayoutRect]
fn as_ref(&self) -> &[LayoutRect]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for LayoutRectVec
impl Clone for LayoutRectVec
Source§impl Debug for LayoutRectVec
impl Debug for LayoutRectVec
Source§impl Default for LayoutRectVec
impl Default for LayoutRectVec
Source§impl Drop for LayoutRectVec
impl Drop for LayoutRectVec
Source§impl Extend<LayoutRect> for LayoutRectVec
impl Extend<LayoutRect> for LayoutRectVec
Source§fn extend<T: IntoIterator<Item = LayoutRect>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = LayoutRect>>(&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 [LayoutRect]> for LayoutRectVec
impl From<&'static [LayoutRect]> for LayoutRectVec
Source§fn from(input: &'static [LayoutRect]) -> LayoutRectVec
fn from(input: &'static [LayoutRect]) -> LayoutRectVec
Converts to this type from the input type.
Source§impl From<LayoutRectVec> for Vec<LayoutRect>
impl From<LayoutRectVec> for Vec<LayoutRect>
Source§fn from(input: LayoutRectVec) -> Vec<LayoutRect>
fn from(input: LayoutRectVec) -> Vec<LayoutRect>
Converts to this type from the input type.
Source§impl From<Vec<LayoutRect>> for LayoutRectVec
impl From<Vec<LayoutRect>> for LayoutRectVec
Source§fn from(input: Vec<LayoutRect>) -> LayoutRectVec
fn from(input: Vec<LayoutRect>) -> LayoutRectVec
Converts to this type from the input type.
Source§impl FromIterator<LayoutRect> for LayoutRectVec
impl FromIterator<LayoutRect> for LayoutRectVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LayoutRect>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LayoutRect>,
Creates a value from an iterator. Read more
Source§impl PartialEq for LayoutRectVec
impl PartialEq for LayoutRectVec
Source§impl PartialOrd for LayoutRectVec
impl PartialOrd for LayoutRectVec
impl Send for LayoutRectVec
impl Sync for LayoutRectVec
Auto Trait Implementations§
impl Freeze for LayoutRectVec
impl RefUnwindSafe for LayoutRectVec
impl Unpin for LayoutRectVec
impl UnwindSafe for LayoutRectVec
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