[−][src]Enum wiggle_generate::config::WitxConf
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
Auto Trait Implementations
impl RefUnwindSafe for WitxConf
impl Send for WitxConf
impl Sync for WitxConf
impl Unpin for WitxConf
impl UnwindSafe for WitxConf
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,