Trait LanguageManagerExt

Source
pub trait LanguageManagerExt: 'static {
    // Required methods
    fn get_language(&self, id: &str) -> Option<Language>;
    fn get_language_ids(&self) -> Vec<GString>;
    fn get_search_path(&self) -> Vec<GString>;
    fn guess_language(
        &self,
        filename: Option<&str>,
        content_type: Option<&str>,
    ) -> Option<Language>;
    fn set_search_path(&self, dirs: &[&str]);
    fn connect_property_language_ids_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_search_path_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_language(&self, id: &str) -> Option<Language>

Source

fn get_language_ids(&self) -> Vec<GString>

Source

fn get_search_path(&self) -> Vec<GString>

Source

fn guess_language( &self, filename: Option<&str>, content_type: Option<&str>, ) -> Option<Language>

Source

fn set_search_path(&self, dirs: &[&str])

Source

fn connect_property_language_ids_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_search_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§