pub struct Row {
pub string: String,
}
Fields
string: String
Implementations
sourceimpl Row
impl Row
pub fn render(
&self,
start: usize,
end: usize,
line_number: usize,
x_offset: usize
) -> String
pub fn chars(&self) -> Chars<'_>
pub fn graphemes(&self) -> Graphemes<'_>
pub fn reversed(&self) -> String
pub fn is_whitespace(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn nth_grapheme(&self, index: usize) -> &str
pub fn nth_char(&self, index: usize) -> char
pub fn num_words(&self) -> usize
pub fn contains(&self, pattern: &str) -> bool
pub fn find_all(&self, pattern: &str) -> Vec<usize>
pub fn as_bytes(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
pub fn trim_end_inplace(&mut self)
pub fn append_str(&mut self, s: &str)
pub fn split(&mut self, at: usize) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnwindSafe for Row
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more