pub enum RetType {
Direct(Type),
Maybe(Type),
}
Expand description
The return type of a method.
Variants§
Direct(Type)
The type is directly returned. For primitives T
, this means
just T
(e.g. int
). For references to T
, this means
Local<T>
(e.g. Local<String>
). For pointers to T
, this
means a non-null pointer T *
.
Maybe(Type)
The type might be absent. For primitives T
, this means
Maybe<T>
(e.g. Maybe<int>
). For references to T
, this
means MaybeLocal<T>
. For pointers to T
, this means a
nullable pointer T *
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RetType
impl RefUnwindSafe for RetType
impl Send for RetType
impl Sync for RetType
impl Unpin for RetType
impl UnwindSafe for RetType
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