pub struct LogicalRectVec { /* private fields */ }Implementations§
Source§impl LogicalRectVec
impl LogicalRectVec
pub fn new() -> LogicalRectVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [LogicalRect]) -> Self
pub fn from_vec(input: Vec<LogicalRect>) -> Self
pub fn iter(&self) -> Iter<'_, LogicalRect>
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<&LogicalRect>
pub fn as_slice(&self) -> &[LogicalRect]
Source§impl LogicalRectVec
impl LogicalRectVec
pub fn from_copy_on_write(input: Cow<'static, [LogicalRect]>) -> LogicalRectVec
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<LogicalRect>
pub fn into_library_owned_vec(self) -> Vec<LogicalRect>
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<[LogicalRect]> for LogicalRectVec
impl AsRef<[LogicalRect]> for LogicalRectVec
Source§fn as_ref(&self) -> &[LogicalRect]
fn as_ref(&self) -> &[LogicalRect]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for LogicalRectVec
impl Clone for LogicalRectVec
Source§impl Debug for LogicalRectVec
impl Debug for LogicalRectVec
Source§impl Default for LogicalRectVec
impl Default for LogicalRectVec
Source§impl Drop for LogicalRectVec
impl Drop for LogicalRectVec
Source§impl From<&'static [LogicalRect]> for LogicalRectVec
impl From<&'static [LogicalRect]> for LogicalRectVec
Source§fn from(input: &'static [LogicalRect]) -> LogicalRectVec
fn from(input: &'static [LogicalRect]) -> LogicalRectVec
Converts to this type from the input type.
Source§impl From<Vec<LogicalRect>> for LogicalRectVec
impl From<Vec<LogicalRect>> for LogicalRectVec
Source§fn from(input: Vec<LogicalRect>) -> LogicalRectVec
fn from(input: Vec<LogicalRect>) -> LogicalRectVec
Converts to this type from the input type.
Source§impl FromIterator<LogicalRect> for LogicalRectVec
impl FromIterator<LogicalRect> for LogicalRectVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LogicalRect>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = LogicalRect>,
Creates a value from an iterator. Read more
Source§impl Hash for LogicalRectVec
impl Hash for LogicalRectVec
Source§impl Ord for LogicalRectVec
impl Ord for LogicalRectVec
Source§impl PartialEq for LogicalRectVec
impl PartialEq for LogicalRectVec
Source§impl PartialOrd for LogicalRectVec
impl PartialOrd for LogicalRectVec
impl Eq for LogicalRectVec
impl Send for LogicalRectVec
impl Sync for LogicalRectVec
Auto Trait Implementations§
impl Freeze for LogicalRectVec
impl RefUnwindSafe for LogicalRectVec
impl Unpin for LogicalRectVec
impl UnwindSafe for LogicalRectVec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more