#[repr(transparent)]pub struct TextIter { /* private fields */ }
Implementations
sourceimpl TextIter
impl TextIter
pub fn assign(&mut self, other: &TextIter)
pub fn backward_char(&mut self) -> bool
pub fn backward_chars(&mut self, count: i32) -> bool
pub fn backward_cursor_position(&mut self) -> bool
pub fn backward_cursor_positions(&mut self, count: i32) -> bool
pub fn backward_find_char<P: FnMut(char) -> bool>(
&mut self,
pred: P,
limit: Option<&TextIter>
) -> bool
pub fn backward_line(&mut self) -> bool
pub fn backward_lines(&mut self, count: i32) -> bool
pub fn backward_search(
&self,
str: &str,
flags: TextSearchFlags,
limit: Option<&TextIter>
) -> Option<(TextIter, TextIter)>
pub fn backward_sentence_start(&mut self) -> bool
pub fn backward_sentence_starts(&mut self, count: i32) -> bool
pub fn backward_to_tag_toggle(&mut self, tag: Option<&impl IsA<TextTag>>) -> bool
pub fn backward_visible_cursor_position(&mut self) -> bool
pub fn backward_visible_cursor_positions(&mut self, count: i32) -> bool
pub fn backward_visible_line(&mut self) -> bool
pub fn backward_visible_lines(&mut self, count: i32) -> bool
pub fn backward_visible_word_start(&mut self) -> bool
pub fn backward_visible_word_starts(&mut self, count: i32) -> bool
pub fn backward_word_start(&mut self) -> bool
pub fn backward_word_starts(&mut self, count: i32) -> bool
pub fn can_insert(&self, default_editability: bool) -> bool
pub fn editable(&self, default_setting: bool) -> bool
pub fn ends_line(&self) -> bool
pub fn ends_sentence(&self) -> bool
pub fn ends_tag(&self, tag: Option<&impl IsA<TextTag>>) -> bool
pub fn ends_word(&self) -> bool
pub fn forward_char(&mut self) -> bool
pub fn forward_chars(&mut self, count: i32) -> bool
pub fn forward_cursor_position(&mut self) -> bool
pub fn forward_cursor_positions(&mut self, count: i32) -> bool
pub fn forward_find_char<P: FnMut(char) -> bool>(
&mut self,
pred: P,
limit: Option<&TextIter>
) -> bool
pub fn forward_line(&mut self) -> bool
pub fn forward_lines(&mut self, count: i32) -> bool
pub fn forward_search(
&self,
str: &str,
flags: TextSearchFlags,
limit: Option<&TextIter>
) -> Option<(TextIter, TextIter)>
pub fn forward_sentence_end(&mut self) -> bool
pub fn forward_sentence_ends(&mut self, count: i32) -> bool
pub fn forward_to_end(&mut self)
pub fn forward_to_line_end(&mut self) -> bool
pub fn forward_to_tag_toggle(&mut self, tag: Option<&impl IsA<TextTag>>) -> bool
pub fn forward_visible_cursor_position(&mut self) -> bool
pub fn forward_visible_cursor_positions(&mut self, count: i32) -> bool
pub fn forward_visible_line(&mut self) -> bool
pub fn forward_visible_lines(&mut self, count: i32) -> bool
pub fn forward_visible_word_end(&mut self) -> bool
pub fn forward_visible_word_ends(&mut self, count: i32) -> bool
pub fn forward_word_end(&mut self) -> bool
pub fn forward_word_ends(&mut self, count: i32) -> bool
pub fn buffer(&self) -> TextBuffer
pub fn bytes_in_line(&self) -> i32
pub fn char(&self) -> char
pub fn chars_in_line(&self) -> i32
pub fn child_anchor(&self) -> Option<TextChildAnchor>
pub fn language(&self) -> Language
pub fn line(&self) -> i32
pub fn line_index(&self) -> i32
pub fn line_offset(&self) -> i32
pub fn marks(&self) -> Vec<TextMark>
pub fn offset(&self) -> i32
pub fn paintable(&self) -> Option<Paintable>
pub fn slice(&self, end: &TextIter) -> GString
pub fn text(&self, end: &TextIter) -> GString
pub fn visible_line_index(&self) -> i32
pub fn visible_line_offset(&self) -> i32
pub fn visible_slice(&self, end: &TextIter) -> GString
pub fn visible_text(&self, end: &TextIter) -> GString
pub fn has_tag(&self, tag: &impl IsA<TextTag>) -> bool
pub fn in_range(&self, start: &TextIter, end: &TextIter) -> bool
pub fn inside_sentence(&self) -> bool
pub fn inside_word(&self) -> bool
pub fn is_cursor_position(&self) -> bool
pub fn is_end(&self) -> bool
pub fn is_start(&self) -> bool
pub fn order(&mut self, second: &mut TextIter)
pub fn set_line(&mut self, line_number: i32)
pub fn set_line_index(&mut self, byte_on_line: i32)
pub fn set_line_offset(&mut self, char_on_line: i32)
pub fn set_offset(&mut self, char_offset: i32)
pub fn set_visible_line_index(&mut self, byte_on_line: i32)
pub fn set_visible_line_offset(&mut self, char_on_line: i32)
pub fn starts_line(&self) -> bool
pub fn starts_sentence(&self) -> bool
pub fn starts_tag(&self, tag: Option<&impl IsA<TextTag>>) -> bool
pub fn starts_word(&self) -> bool
pub fn toggles_tag(&self, tag: Option<&impl IsA<TextTag>>) -> bool
Trait Implementations
sourceimpl Ord for TextIter
impl Ord for TextIter
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TextIter> for TextIter
impl PartialEq<TextIter> for TextIter
sourceimpl PartialOrd<TextIter> for TextIter
impl PartialOrd<TextIter> for TextIter
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StaticType for TextIter
impl StaticType for TextIter
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Copy for TextIter
impl Eq for TextIter
Auto Trait Implementations
impl RefUnwindSafe for TextIter
impl !Send for TextIter
impl !Sync for TextIter
impl Unpin for TextIter
impl UnwindSafe for TextIter
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
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.