Struct uniffi_bindgen::interface::ResultType
source · pub struct ResultType {
pub return_type: Option<Type>,
pub throws_type: Option<Type>,
}
Expand description
Combines the return and throws type of a function/method
Fields§
§return_type: Option<Type>
§throws_type: Option<Type>
Implementations§
source§impl ResultType
impl ResultType
sourcepub fn future_callback_param(&self) -> FfiType
pub fn future_callback_param(&self) -> FfiType
Get the T
parameters for the FutureCallback<T>
for this ResultType
Trait Implementations§
source§impl Debug for ResultType
impl Debug for ResultType
source§impl Ord for ResultType
impl Ord for ResultType
source§fn cmp(&self, other: &ResultType) -> Ordering
fn cmp(&self, other: &ResultType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ResultType> for ResultType
impl PartialEq<ResultType> for ResultType
source§fn eq(&self, other: &ResultType) -> bool
fn eq(&self, other: &ResultType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResultType> for ResultType
impl PartialOrd<ResultType> for ResultType
source§fn partial_cmp(&self, other: &ResultType) -> Option<Ordering>
fn partial_cmp(&self, other: &ResultType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ResultType
impl StructuralEq for ResultType
impl StructuralPartialEq for ResultType
Auto Trait Implementations§
impl RefUnwindSafe for ResultType
impl Send for ResultType
impl Sync for ResultType
impl Unpin for ResultType
impl UnwindSafe for ResultType
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