pub struct InlineWordVec { /* private fields */ }Implementations§
Source§impl InlineWordVec
impl InlineWordVec
pub fn new() -> InlineWordVec
pub fn with_capacity(cap: usize) -> Self
pub const fn from_const_slice(input: &'static [InlineWord]) -> Self
pub fn from_vec(input: Vec<InlineWord>) -> Self
pub fn iter(&self) -> Iter<'_, InlineWord>
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<&InlineWord>
pub fn as_slice(&self) -> &[InlineWord]
Source§impl InlineWordVec
impl InlineWordVec
pub fn from_copy_on_write(input: Cow<'static, [InlineWord]>) -> InlineWordVec
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<InlineWord>
pub fn into_library_owned_vec(self) -> Vec<InlineWord>
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<[InlineWord]> for InlineWordVec
impl AsRef<[InlineWord]> for InlineWordVec
Source§fn as_ref(&self) -> &[InlineWord]
fn as_ref(&self) -> &[InlineWord]
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for InlineWordVec
impl Clone for InlineWordVec
Source§impl Debug for InlineWordVec
impl Debug for InlineWordVec
Source§impl Default for InlineWordVec
impl Default for InlineWordVec
Source§impl Drop for InlineWordVec
impl Drop for InlineWordVec
Source§impl From<&'static [InlineWord]> for InlineWordVec
impl From<&'static [InlineWord]> for InlineWordVec
Source§fn from(input: &'static [InlineWord]) -> InlineWordVec
fn from(input: &'static [InlineWord]) -> InlineWordVec
Converts to this type from the input type.
Source§impl From<Vec<InlineWord>> for InlineWordVec
impl From<Vec<InlineWord>> for InlineWordVec
Source§fn from(input: Vec<InlineWord>) -> InlineWordVec
fn from(input: Vec<InlineWord>) -> InlineWordVec
Converts to this type from the input type.
Source§impl FromIterator<InlineWord> for InlineWordVec
impl FromIterator<InlineWord> for InlineWordVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = InlineWord>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = InlineWord>,
Creates a value from an iterator. Read more
Source§impl PartialEq for InlineWordVec
impl PartialEq for InlineWordVec
Source§impl PartialOrd for InlineWordVec
impl PartialOrd for InlineWordVec
impl Send for InlineWordVec
impl Sync for InlineWordVec
Auto Trait Implementations§
impl Freeze for InlineWordVec
impl RefUnwindSafe for InlineWordVec
impl Unpin for InlineWordVec
impl UnwindSafe for InlineWordVec
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