pub struct TxtPos<'a> {
pub txt_li: Vec<&'a str>,
pub pos_li: Vec<usize>,
}Fields§
§txt_li: Vec<&'a str>§pos_li: Vec<usize>Implementations§
source§impl<'a> TxtPos<'a>
impl<'a> TxtPos<'a>
pub fn with_capacity(capacity: usize) -> Self
pub fn push(&mut self, txt: &'a str)
pub fn push_pos(&mut self, txt: &'a str)
pub fn push_txt(&mut self, txt: &'a str)
pub fn push_txt_line(&mut self, txt: &'a str)
pub fn merge( &mut self, li: impl IntoIterator<Item = impl AsRef<str>> ) -> Result<String, TxtPosError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for TxtPos<'a>
impl<'a> Send for TxtPos<'a>
impl<'a> Sync for TxtPos<'a>
impl<'a> Unpin for TxtPos<'a>
impl<'a> UnwindSafe for TxtPos<'a>
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