Struct windres::Build [−][src]
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]
&mut self,
name: &str,
value: V
) -> &mut Self
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
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]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,