Struct makepad_code_editor::text::Text
source · 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
source§impl PartialEq<Text> for Text
impl PartialEq<Text> for Text
impl Eq for Text
impl StructuralEq for Text
impl StructuralPartialEq for Text
Auto Trait Implementations§
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> 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