pub struct Text { /* private fields */ }
Implementations§
Source§impl Text
impl Text
pub fn new() -> Self
pub fn newline() -> Self
pub fn from_buf_reader<R>(reader: R) -> Result<Self>where
R: BufRead,
pub fn is_empty(&self) -> bool
pub fn length(&self) -> Length
pub fn to_single_char(&self) -> Option<char>
pub fn as_lines(&self) -> &[String]
pub fn slice(&self, start: Position, length: Length) -> Self
pub fn apply_change(&mut self, change: Change)
pub fn into_lines(self) -> Vec<String>
Trait Implementations§
Source§impl FromIterator<char> for Text
impl FromIterator<char> for Text
impl Eq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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