Struct windres::Build[][src]

pub struct Build { /* fields omitted */ }

A builder for compiling Windows resources.

Implementations

impl Build[src]

pub fn new() -> Self[src]

Creates a new, empty builder.

pub fn include<P: AsRef<Path>>(&mut self, path: P) -> &mut Self[src]

Specifies an additional include path to use during preprocessing.

pub fn define<'a, V: Into<Option<&'a str>>>(
    &mut self,
    name: &str,
    value: V
) -> &mut Self
[src]

Specifies an additional preprocessor definition to use during preprocessing.

pub fn undefine(&mut self, name: &str) -> &mut Self[src]

Specifies a preprocessor symbol to undefine during preprocessing.

pub fn compile<P: AsRef<Path>>(&mut self, rc_file: P) -> Result<()>[src]

Compiles a Windows resource file (.rc).

Errors

This method returns a std::io::Error if it either cannot locate a resource compiler or fails to compile the resource.

Trait Implementations

impl Clone for Build[src]

impl Debug for Build[src]

impl Default for Build[src]

Auto Trait Implementations

impl RefUnwindSafe for Build

impl Send for Build

impl Sync for Build

impl Unpin for Build

impl UnwindSafe for Build

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.