ParserExt

Trait ParserExt 

Source
pub trait ParserExt: IsA<Parser> + 'static {
Show 18 methods // Provided methods fn current_line(&self) -> u32 { ... } fn current_pos(&self) -> u32 { ... } fn root(&self) -> Option<Node> { ... } fn has_assignment(&self) -> Option<GString> { ... } fn load_from_data(&self, data: &str) -> Result<(), Error> { ... } fn load_from_file(&self, filename: impl AsRef<Path>) -> Result<(), Error> { ... } fn load_from_stream( &self, stream: &impl IsA<InputStream>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn load_from_stream_async<P: FnOnce(Result<(), Error>) + 'static>( &self, stream: &impl IsA<InputStream>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn load_from_stream_future( &self, stream: &(impl IsA<InputStream> + Clone + 'static), ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } fn is_immutable(&self) -> bool { ... } fn connect_array_element<F: Fn(&Self, &Array, i32) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_array_end<F: Fn(&Self, &Array) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_array_start<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_object_end<F: Fn(&Self, &Object) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_object_member<F: Fn(&Self, &Object, &str) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_object_start<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_parse_end<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_parse_start<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn current_line(&self) -> u32

Source

fn current_pos(&self) -> u32

Source

fn root(&self) -> Option<Node>

Source

fn has_assignment(&self) -> Option<GString>

Source

fn load_from_data(&self, data: &str) -> Result<(), Error>

Source

fn load_from_file(&self, filename: impl AsRef<Path>) -> Result<(), Error>

Source

fn load_from_stream( &self, stream: &impl IsA<InputStream>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

fn load_from_stream_async<P: FnOnce(Result<(), Error>) + 'static>( &self, stream: &impl IsA<InputStream>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

Source

fn load_from_stream_future( &self, stream: &(impl IsA<InputStream> + Clone + 'static), ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

Source

fn is_immutable(&self) -> bool

Available on crate feature v1_2 only.
Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_parse_start<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§

Source§

impl<O: IsA<Parser>> ParserExt for O