Struct TextIter

Source
pub struct TextIter(/* private fields */);

Implementations§

Source§

impl TextIter

Source

pub fn assign(&mut self, other: &TextIter)

Source

pub fn backward_char(&mut self) -> bool

Source

pub fn backward_chars(&mut self, count: i32) -> bool

Source

pub fn backward_cursor_position(&mut self) -> bool

Source

pub fn backward_cursor_positions(&mut self, count: i32) -> bool

Source

pub fn backward_find_char<P: FnMut(char) -> bool>( &mut self, pred: P, limit: Option<&TextIter>, ) -> bool

Source

pub fn backward_line(&mut self) -> bool

Source

pub fn backward_lines(&mut self, count: i32) -> bool

Source

pub fn backward_sentence_start(&mut self) -> bool

Source

pub fn backward_sentence_starts(&mut self, count: i32) -> bool

Source

pub fn backward_to_tag_toggle<P: IsA<TextTag>>( &mut self, tag: Option<&P>, ) -> bool

Source

pub fn backward_visible_cursor_position(&mut self) -> bool

Source

pub fn backward_visible_cursor_positions(&mut self, count: i32) -> bool

Source

pub fn backward_visible_line(&mut self) -> bool

Source

pub fn backward_visible_lines(&mut self, count: i32) -> bool

Source

pub fn backward_visible_word_start(&mut self) -> bool

Source

pub fn backward_visible_word_starts(&mut self, count: i32) -> bool

Source

pub fn backward_word_start(&mut self) -> bool

Source

pub fn backward_word_starts(&mut self, count: i32) -> bool

Source

pub fn begins_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool

👎Deprecated
Source

pub fn can_insert(&self, default_editability: bool) -> bool

Source

pub fn editable(&self, default_setting: bool) -> bool

Source

pub fn ends_line(&self) -> bool

Source

pub fn ends_sentence(&self) -> bool

Source

pub fn ends_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool

Source

pub fn ends_word(&self) -> bool

Source

pub fn forward_char(&mut self) -> bool

Source

pub fn forward_chars(&mut self, count: i32) -> bool

Source

pub fn forward_cursor_position(&mut self) -> bool

Source

pub fn forward_cursor_positions(&mut self, count: i32) -> bool

Source

pub fn forward_find_char<P: FnMut(char) -> bool>( &mut self, pred: P, limit: Option<&TextIter>, ) -> bool

Source

pub fn forward_line(&mut self) -> bool

Source

pub fn forward_lines(&mut self, count: i32) -> bool

Source

pub fn forward_sentence_end(&mut self) -> bool

Source

pub fn forward_sentence_ends(&mut self, count: i32) -> bool

Source

pub fn forward_to_end(&mut self)

Source

pub fn forward_to_line_end(&mut self) -> bool

Source

pub fn forward_to_tag_toggle<P: IsA<TextTag>>( &mut self, tag: Option<&P>, ) -> bool

Source

pub fn forward_visible_cursor_position(&mut self) -> bool

Source

pub fn forward_visible_cursor_positions(&mut self, count: i32) -> bool

Source

pub fn forward_visible_line(&mut self) -> bool

Source

pub fn forward_visible_lines(&mut self, count: i32) -> bool

Source

pub fn forward_visible_word_end(&mut self) -> bool

Source

pub fn forward_visible_word_ends(&mut self, count: i32) -> bool

Source

pub fn forward_word_end(&mut self) -> bool

Source

pub fn forward_word_ends(&mut self, count: i32) -> bool

Source

pub fn get_buffer(&self) -> Option<TextBuffer>

Source

pub fn get_bytes_in_line(&self) -> i32

Source

pub fn get_char(&self) -> Option<char>

Source

pub fn get_chars_in_line(&self) -> i32

Source

pub fn get_child_anchor(&self) -> Option<TextChildAnchor>

Source

pub fn get_language(&self) -> Option<Language>

Source

pub fn get_line(&self) -> i32

Source

pub fn get_line_index(&self) -> i32

Source

pub fn get_line_offset(&self) -> i32

Source

pub fn get_marks(&self) -> Vec<TextMark>

Source

pub fn get_offset(&self) -> i32

Source

pub fn get_pixbuf(&self) -> Option<Pixbuf>

Source

pub fn get_slice(&self, end: &TextIter) -> Option<GString>

Source

pub fn get_tags(&self) -> Vec<TextTag>

Source

pub fn get_text(&self, end: &TextIter) -> Option<GString>

Source

pub fn get_toggled_tags(&self, toggled_on: bool) -> Vec<TextTag>

Source

pub fn get_visible_line_index(&self) -> i32

Source

pub fn get_visible_line_offset(&self) -> i32

Source

pub fn get_visible_slice(&self, end: &TextIter) -> Option<GString>

Source

pub fn get_visible_text(&self, end: &TextIter) -> Option<GString>

Source

pub fn has_tag<P: IsA<TextTag>>(&self, tag: &P) -> bool

Source

pub fn in_range(&self, start: &TextIter, end: &TextIter) -> bool

Source

pub fn inside_sentence(&self) -> bool

Source

pub fn inside_word(&self) -> bool

Source

pub fn is_cursor_position(&self) -> bool

Source

pub fn is_end(&self) -> bool

Source

pub fn is_start(&self) -> bool

Source

pub fn order(&mut self, second: &mut TextIter)

Source

pub fn set_line(&mut self, line_number: i32)

Source

pub fn set_line_index(&mut self, byte_on_line: i32)

Source

pub fn set_line_offset(&mut self, char_on_line: i32)

Source

pub fn set_offset(&mut self, char_offset: i32)

Source

pub fn set_visible_line_index(&mut self, byte_on_line: i32)

Source

pub fn set_visible_line_offset(&mut self, char_on_line: i32)

Source

pub fn starts_line(&self) -> bool

Source

pub fn starts_sentence(&self) -> bool

Source

pub fn starts_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool

Source

pub fn starts_word(&self) -> bool

Source

pub fn toggles_tag<P: IsA<TextTag>>(&self, tag: Option<&P>) -> bool

Source§

impl TextIter

Source

pub fn get_attributes(&self, values: &TextAttributes) -> bool

Trait Implementations§

Source§

impl Clone for TextIter

Source§

fn clone(&self) -> TextIter

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TextIter

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for TextIter

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for TextIter

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for TextIter

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for TextIter

Source§

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 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StaticType for TextIter

Source§

fn static_type() -> Type

Returns the type identifier of Self.
Source§

impl Eq for TextIter

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for T

Source§

impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for T

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToValue for T
where T: SetValue + ?Sized,

Source§

fn to_value(&self) -> Value

Returns a Value clone of self.
Source§

fn to_value_type(&self) -> Type

Returns the type identifer of self. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.