FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RuntimeXamlLoaderDocument

    struct · ferroui-markup-xaml · v0.5.0

    struct RuntimeXamlLoaderDocument
    

    A markup document for the runtime XAML loader.

    View source

    Members

    base_uri

    base_uri: Option<url::Url>
    

    The URI of the document: the absolute URL relative references in it are resolved against.

    Source

    document

    document: Option<String>
    

    The path of the document, for diagnostics.

    Source

    root_instance

    root_instance: Option<ferroui_base::BoxedValue>
    

    An existing instance to populate instead of creating the root object of the document.

    Source

    service_provider

    service_provider: Option<std::rc::Rc<dyn IServiceProvider>>
    

    A service provider the root of the document is given as its parent: the context of the place the document is loaded into.

    Source

    new

    fn new(xaml: &str) -> Self
    

    A document from text.

    Source

    with_base_uri

    fn with_base_uri(base_uri: Option<url::Url>, xaml: &str) -> Self
    

    A document from text, with its URI.

    Source

    with_root_instance

    fn with_root_instance(root_instance: Option<BoxedValue>, xaml: &str) -> Self
    

    A document from text that populates root_instance.

    Source

    with_base_uri_and_root_instance

    fn with_base_uri_and_root_instance(base_uri: Option<url::Url>, root_instance: Option<BoxedValue>, xaml: &str) -> Self
    

    A document from text, with its URI, that populates root_instance.

    Source

    from_stream

    fn from_stream(stream: Box<dyn Read>) -> Self
    

    A document from a stream of UTF-8 text.

    Source

    from_stream_with_base_uri

    fn from_stream_with_base_uri(base_uri: Option<url::Url>, stream: Box<dyn Read>) -> Self
    

    A document from a stream, with its URI.

    Source

    from_stream_with_root_instance

    fn from_stream_with_root_instance(root_instance: Option<BoxedValue>, stream: Box<dyn Read>) -> Self
    

    A document from a stream that populates root_instance.

    Source

    from_stream_with_base_uri_and_root_instance

    fn from_stream_with_base_uri_and_root_instance(base_uri: Option<url::Url>, root_instance: Option<BoxedValue>, stream: Box<dyn Read>) -> Self
    

    A document from a stream, with its URI, that populates root_instance.

    Source

    xaml_stream

    fn xaml_stream(self: &Self) -> std::cell::RefMut<'_, Box<dyn Read>>
    

    The stream of the document. Reading advances it: a document is read once.

    Source

    read_to_string

    fn read_to_string(self: &Self) -> std::io::Result<String>
    

    Reads the rest of the document as text.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.