[−][src]Struct intercom_common::methodinfo::ComMethodInfo
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]
m: &MethodSig,
type_system: ModelTypeSystem
) -> Result<ComMethodInfo, ComMethodInfoError>
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]
n: Ident,
decl: &FnDecl,
unsafety: bool,
type_system: ModelTypeSystem
) -> Result<ComMethodInfo, ComMethodInfoError>
pub fn raw_com_args(&self) -> Vec<ComArg>
[src]
Trait Implementations
impl Clone for ComMethodInfo
[src]
fn clone(&self) -> ComMethodInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<ComMethodInfo> for ComMethodInfo
[src]
fn eq(&self, other: &ComMethodInfo) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for ComMethodInfo
[src]
Auto Trait Implementations
impl !Send for ComMethodInfo
impl Unpin for ComMethodInfo
impl !Sync for ComMethodInfo
impl !UnwindSafe for ComMethodInfo
impl !RefUnwindSafe for ComMethodInfo
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,