lib-ruby-parser (C++ bindings)
4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
|
#include <string.hpp>
Public Member Functions | |
MaybeString () | |
MaybeString (String s) | |
MaybeString (const MaybeString &)=delete | |
MaybeString & | operator= (MaybeString const &)=delete |
MaybeString (MaybeString &&)=default | |
MaybeString & | operator= (MaybeString &&)=default |
~MaybeString ()=default | |
bool | is_some () const |
Returns true if pointer is Some(String) More... | |
bool | is_none () const |
Returns true if pointer is None More... | |
Public Attributes | |
String | string |
Rerpresentation of Option<String>. Rust has a Option<non-null ptr> optimization that None is NULL on the byte level. Thus, it's not a tagged enum. To check whether it's a Some(String) or None use helpers:
lib_ruby_parser::MaybeString::MaybeString | ( | ) |
|
explicit |
|
delete |
|
default |
|
default |
bool lib_ruby_parser::MaybeString::is_none | ( | ) | const |
Returns true
if pointer is None
bool lib_ruby_parser::MaybeString::is_some | ( | ) | const |
Returns true
if pointer is Some(String)
|
default |
|
delete |
String lib_ruby_parser::MaybeString::string |