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