Enum v8_api::RetType
[−]
[src]
pub enum RetType { Direct(Type), Maybe(Type), }
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 *
.