[][src]Enum wiggle_generate::config::WitxConf

pub enum WitxConf {
    Paths(Paths),
    Literal(Literal),
}

The witx document(s) that will be loaded from a Config.

A witx interface definition can be provided either as a collection of relative paths to documents, or as a single inlined string literal. Note that (use ...) directives are not permitted when providing a string literal.

Variants

Paths(Paths)

A collection of paths pointing to witx files.

Literal(Literal)

A single witx document, provided as a string literal.

Implementations

impl WitxConf[src]

pub fn load_document(&self) -> Document[src]

Load the witx document.

Panics

This method will panic if the paths given in the witx field were not valid documents, or if any of the given documents were not syntactically valid.

pub fn make_paths_relative_to<P: AsRef<Path>>(&mut self, root: P)[src]

If using the Paths syntax, make all paths relative to a root directory.

Trait Implementations

impl Clone for WitxConf[src]

impl Debug for WitxConf[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.