[][src]Struct intercom_common::methodinfo::ComMethodInfo

pub struct ComMethodInfo {
    pub display_name: Ident,
    pub unique_name: Ident,
    pub is_const: bool,
    pub rust_self_arg: ArgSelfRef,
    pub rust_return_ty: Type,
    pub retval_type: Option<Type>,
    pub return_type: Option<Type>,
    pub returnhandler: Rc<dyn ReturnHandler>,
    pub args: Vec<RustArg>,
    pub is_unsafe: bool,
    pub type_system: ModelTypeSystem,
}

Fields

display_name: Ident

The display name used in public places that do not require an unique name.

unique_name: Ident

Unique name that differentiates between different type systems.

is_const: bool

True if the self parameter is not mutable.

rust_self_arg: ArgSelfRef

Rust self argument.

rust_return_ty: Type

Rust return type.

retval_type: Option<Type>

COM retval out parameter type, such as the value of Result<...>.

return_type: Option<Type>

COM return type, such as the error value of Result<...>.

returnhandler: Rc<dyn ReturnHandler>

Return value handler.

args: Vec<RustArg>

Method arguments.

is_unsafe: bool

True if the Rust method is unsafe.

type_system: ModelTypeSystem

Type system.

Methods

impl ComMethodInfo[src]

pub fn new(
    m: &MethodSig,
    type_system: ModelTypeSystem
) -> Result<ComMethodInfo, ComMethodInfoError>
[src]

Constructs new COM method info from a Rust method signature.

pub fn new_from_parts(
    n: Ident,
    decl: &FnDecl,
    unsafety: bool,
    type_system: ModelTypeSystem
) -> Result<ComMethodInfo, ComMethodInfoError>
[src]

pub fn raw_com_args(&self) -> Vec<ComArg>[src]

Trait Implementations

impl Clone for ComMethodInfo[src]

impl PartialEq<ComMethodInfo> for ComMethodInfo[src]

impl Debug for ComMethodInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]