Struct mesdoc::interface::Texts[][src]

pub struct Texts<'a> { /* fields omitted */ }

Implementations

impl<'a> Texts<'a>[src]

pub fn with_capacity(cap: usize) -> Self[src]

pub fn length(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn get_ref(&self) -> &Vec<BoxDynText<'a>>[src]

pub fn get_mut_ref(&mut self) -> &mut Vec<BoxDynText<'a>>[src]

pub fn for_each<F>(&mut self, handle: F) -> &mut Self where
    F: FnMut(usize, &mut BoxDynText<'_>) -> bool
[src]

pub fn each<F>(&mut self, handle: F) -> &mut Self where
    F: FnMut(usize, &mut BoxDynText<'_>) -> bool
[src]

pub fn filter_by<F>(&self, handle: F) -> Texts<'a> where
    F: Fn(usize, &BoxDynText<'_>) -> bool
[src]

pub fn remove(self)[src]

Trait Implementations

impl<'a> Default for Texts<'a>[src]

impl<'a> From<Vec<Box<dyn ITextTrait + 'a, Global>, Global>> for Texts<'a>[src]

impl<'a> IntoIterator for Texts<'a>[src]

type Item = BoxDynText<'a>

The type of the elements being iterated over.

type IntoIter = Box<dyn Iterator<Item = Self::Item> + 'a>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Texts<'a>

impl<'a> !Send for Texts<'a>

impl<'a> !Sync for Texts<'a>

impl<'a> Unpin for Texts<'a>

impl<'a> !UnwindSafe for Texts<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.