Struct sourceview5::Mark[][src]

pub struct Mark(_);

Implementations

impl Mark[src]

pub fn new(name: &str, category: &str) -> Mark[src]

Creates a text mark. Add it to a buffer using gtk::TextBufferExt::add_mark. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using gtk::TextBufferExt::get_mark. Normally marks are created using the utility function BufferExt::create_source_mark.

name

Name of the Mark, can be NULL when not using a name

category

is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the “bookmark” category, or all the marks representing a compilation error could belong to “error” category).

Returns

a new Mark that can be added using gtk::TextBufferExt::add_mark.

Trait Implementations

impl Clone for Mark[src]

impl Debug for Mark[src]

impl Display for Mark[src]

impl Eq for Mark[src]

impl Hash for Mark[src]

impl IsA<TextMark> for Mark[src]

impl Ord for Mark[src]

impl ParentClassIs for Mark[src]

type Parent = TextMark

impl<T: ObjectType> PartialEq<T> for Mark[src]

impl<T: ObjectType> PartialOrd<T> for Mark[src]

impl StaticType for Mark[src]

impl StructuralEq for Mark[src]

Auto Trait Implementations

impl RefUnwindSafe for Mark

impl !Send for Mark

impl !Sync for Mark

impl Unpin for Mark

impl UnwindSafe for Mark

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<O> TextMarkExt for O where
    O: IsA<TextMark>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.