pub enum Id {
Integer(u16),
Text(String),
}Expand description
Id enum that contains a windows resource id representation. Windows resource ids can be
a pointer to a string or if the pointer value is below 0xffff the id represents an integer
resource id. Id encapsulates this representation into a Rust enum and provides From
and Into trait implementations to interop with the Windows API.
Variants§
Trait Implementations§
Source§impl Into<PCSTR> for Id
Convert an Id to a zero-terminated string pointer or
an integer resource representation.
impl Into<PCSTR> for Id
Convert an Id to a zero-terminated string pointer or
an integer resource representation.
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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