Trait lib_ruby_parser::containers::helpers::MaybeAPI[][src]

pub trait MaybeAPI<T> {
    fn some(value: T) -> Self
    where
        Self: Sized
;
fn none() -> Self
    where
        Self: Sized
; }
Expand description

Shared Maybe API, implemented for both ExternalMaybe and std::option::Option

Required methods

Some(T) constructor

None constructor

Implementations on Foreign Types

Implementors