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