Struct windows::Win32::Foundation::WIN32_ERROR
#[repr(transparent)]pub struct WIN32_ERROR(pub u32);
Tuple Fields§
§0: u32
Implementations§
§impl WIN32_ERROR
impl WIN32_ERROR
pub const fn is_ok(self) -> bool
pub const fn is_err(self) -> bool
pub const fn to_hresult(self) -> HRESULT
pub fn from_error(error: &Error) -> Option<Self>
pub fn ok(self) -> Result<()>
Trait Implementations§
§impl Clone for WIN32_ERROR
impl Clone for WIN32_ERROR
§fn clone(&self) -> WIN32_ERROR
fn clone(&self) -> WIN32_ERROR
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 more§impl Debug for WIN32_ERROR
impl Debug for WIN32_ERROR
§impl Default for WIN32_ERROR
impl Default for WIN32_ERROR
§fn default() -> WIN32_ERROR
fn default() -> WIN32_ERROR
Returns the “default value” for a type. Read more
§impl From<WIN32_ERROR> for Error
impl From<WIN32_ERROR> for Error
§fn from(value: WIN32_ERROR) -> Self
fn from(value: WIN32_ERROR) -> Self
Converts to this type from the input type.
§impl From<WIN32_ERROR> for HRESULT
impl From<WIN32_ERROR> for HRESULT
§fn from(value: WIN32_ERROR) -> Self
fn from(value: WIN32_ERROR) -> Self
Converts to this type from the input type.
§impl PartialEq for WIN32_ERROR
impl PartialEq for WIN32_ERROR
§fn eq(&self, other: &WIN32_ERROR) -> bool
fn eq(&self, other: &WIN32_ERROR) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WIN32_ERROR
impl Eq for WIN32_ERROR
impl StructuralPartialEq for WIN32_ERROR
Auto Trait Implementations§
impl Freeze for WIN32_ERROR
impl RefUnwindSafe for WIN32_ERROR
impl Send for WIN32_ERROR
impl Sync for WIN32_ERROR
impl Unpin for WIN32_ERROR
impl UnwindSafe for WIN32_ERROR
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)