pub struct Text<'a> { /* private fields */ }Implementations§
Source§impl<'a> Text<'a>
impl<'a> Text<'a>
pub fn new(page_props: &'a PageProps<'_>) -> Text<'a>
pub fn new_with_map( page_props: &'a PageProps<'_>, imgs_map: Rc<ImagesMap<'a>>, ) -> Text<'a>
pub fn new_with_dic_name( page_props: &'a PageProps<'_>, dic_name: &'a str, ) -> Text<'a>
pub fn push_word(&mut self, s_word: &str)
pub fn imgs_map(&self) -> &ImagesMap<'_>
pub fn parse(&mut self, string: String)
pub fn parse_str(&mut self, str: &str)
pub fn print(&self)
pub fn to_img(&mut self) -> Vec<RgbaImage>
pub fn to_files(&mut self, files_name: Option<&str>)
pub fn parse_to_png(&mut self, str: &str, files_name: Option<&str>)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Text<'a>
impl<'a> !Send for Text<'a>
impl<'a> !Sync for Text<'a>
impl<'a> !UnwindSafe for Text<'a>
impl<'a> Forget for Text<'a>
impl<'a> Freeze for Text<'a>
impl<'a> Move for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnsafeUnpin for Text<'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
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