pub struct TypeHandler { /* private fields */ }
Expand description
Defines Type-specific logic for handling the various parameter types in the Rust/COM interface.
Implementations§
Source§impl TypeHandler
impl TypeHandler
Sourcepub fn com_to_rust(
&self,
ident: &Ident,
span: Span,
dir: Direction,
infallible: bool,
) -> TokenStream
pub fn com_to_rust( &self, ident: &Ident, span: Span, dir: Direction, infallible: bool, ) -> TokenStream
Converts a COM parameter named by the ident into a Rust type.
Sourcepub fn rust_to_com(
&self,
ident: &Ident,
span: Span,
dir: Direction,
infallible: bool,
) -> TokenStream
pub fn rust_to_com( &self, ident: &Ident, span: Span, dir: Direction, infallible: bool, ) -> TokenStream
Converts a Rust parameter named by the ident into a COM type.
Sourcepub fn default_value(&self) -> TokenStream
pub fn default_value(&self) -> TokenStream
Gets the default value for the type.
Auto Trait Implementations§
impl Freeze for TypeHandler
impl RefUnwindSafe for TypeHandler
impl !Send for TypeHandler
impl !Sync for TypeHandler
impl Unpin for TypeHandler
impl UnwindSafe for TypeHandler
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