blob: b9af2d3c652ee3689b49f5e88ced189f69516096 [file] [log] [blame]
#[repr(transparent)]
#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
pub struct HCS_CALLBACK(pub isize);
impl HCS_CALLBACK {
pub fn is_invalid(&self) -> bool {
self.0 == -1 || self.0 == 0
}
}
impl ::core::default::Default for HCS_CALLBACK {
fn default() -> Self {
unsafe { ::core::mem::zeroed() }
}
}
impl ::core::clone::Clone for HCS_CALLBACK {
fn clone(&self) -> Self {
*self
}
}
impl ::core::marker::Copy for HCS_CALLBACK {}
impl ::core::fmt::Debug for HCS_CALLBACK {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
f.debug_tuple("HCS_CALLBACK").field(&self.0).finish()
}
}
impl ::windows::core::TypeKind for HCS_CALLBACK {
type TypeKind = ::windows::core::CopyType;
}
#[cfg(feature = "implement")]
::core::include!("impl.rs");