pub enum CompilationResult {
NotWindows,
Ok,
NotAttempted(Cow<'static, str>),
Failed(Cow<'static, str>),
}
Expand description
Result of compile()
and compile_for*()
Turn this into a Result
with manifest_optional()
if the manifest is nice, but isn’t required, like when embedding an
icon or some other cosmetic.
Turn this into a Result
with manifest_required()
if the manifest is mandatory, like when configuring entry points or
security.
Variants§
NotWindows
not building for windows
Ok
built, linked
NotAttempted(Cow<'static, str>)
building for windows, but the environment can’t compile a resource (most likely due to a missing compiler)
Failed(Cow<'static, str>)
environment can compile a resource, but has failed to do so
Implementations§
Source§impl CompilationResult
impl CompilationResult
Sourcepub fn manifest_optional(self) -> Result<(), CompilationResult>
pub fn manifest_optional(self) -> Result<(), CompilationResult>
Ok(())
if NotWindows
, Ok
, or NotAttempted
; Err(self)
if Failed
Sourcepub fn manifest_required(self) -> Result<(), CompilationResult>
pub fn manifest_required(self) -> Result<(), CompilationResult>
Ok(())
if NotWindows
, Ok
; Err(self)
if NotAttempted
or Failed
Trait Implementations§
Source§impl Clone for CompilationResult
impl Clone for CompilationResult
Source§fn clone(&self) -> CompilationResult
fn clone(&self) -> CompilationResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CompilationResult
impl Debug for CompilationResult
Source§impl Display for CompilationResult
impl Display for CompilationResult
Source§impl Error for CompilationResult
impl Error for CompilationResult
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Hash for CompilationResult
impl Hash for CompilationResult
Source§impl Ord for CompilationResult
impl Ord for CompilationResult
Source§fn cmp(&self, other: &CompilationResult) -> Ordering
fn cmp(&self, other: &CompilationResult) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompilationResult
impl PartialEq for CompilationResult
Source§impl PartialOrd for CompilationResult
impl PartialOrd for CompilationResult
impl Eq for CompilationResult
impl StructuralPartialEq for CompilationResult
Auto Trait Implementations§
impl Freeze for CompilationResult
impl RefUnwindSafe for CompilationResult
impl Send for CompilationResult
impl Sync for CompilationResult
impl Unpin for CompilationResult
impl UnwindSafe for CompilationResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.