pub enum Signature {
Primitive(&'static str),
Interface(Guid),
Class {
name: &'static str,
default_interface: Guid,
},
Enum {
name: &'static str,
signed: bool,
},
Struct {
name: &'static str,
fields: Vec<Signature>,
},
Delegate(Guid),
Parameterized {
generic: Guid,
arguments: Vec<Signature>,
},
}Expand description
A WinRT type, as far as computing a signature needs to know.
Variants§
Primitive(&'static str)
b1, i4, string, and the rest of the primitive codes.
Interface(Guid)
A non-parameterised interface: its IID in braces.
Class
rc(Full.Type.Name;<default interface>).
Enum
enum(Full.Type.Name;i4) — or u4 for a flags enum.
Struct
struct(Full.Type.Name;<fields>).
Delegate(Guid)
delegate({iid}).
Parameterized
pinterface({generic};<args>).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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