lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::DecoderResult Struct Reference

#include <decoder.hpp>

Classes

union  Value
 

Public Types

enum  Tag { Tag::OK, Tag::ERR }
 

Public Member Functions

 DecoderResult (Tag tag, Value as)
 
 DecoderResult (DecoderResult &&)=default
 
DecoderResultoperator= (DecoderResult &&)=default
 
 ~DecoderResult ()
 

Static Public Member Functions

static DecoderResult Ok (ByteList decoded)
 
static DecoderResult Err (InputError err)
 

Public Attributes

Tag tag
 
Value as
 

Member Enumeration Documentation

◆ Tag

Enumerator
OK 
ERR 

Constructor & Destructor Documentation

◆ DecoderResult() [1/2]

lib_ruby_parser::DecoderResult::DecoderResult ( Tag  tag,
Value  as 
)

◆ DecoderResult() [2/2]

lib_ruby_parser::DecoderResult::DecoderResult ( DecoderResult &&  )
default

◆ ~DecoderResult()

lib_ruby_parser::DecoderResult::~DecoderResult ( )

Member Function Documentation

◆ Err()

static DecoderResult lib_ruby_parser::DecoderResult::Err ( InputError  err)
static

◆ Ok()

static DecoderResult lib_ruby_parser::DecoderResult::Ok ( ByteList  decoded)
static

◆ operator=()

DecoderResult& lib_ruby_parser::DecoderResult::operator= ( DecoderResult &&  )
default

Member Data Documentation

◆ as

Value lib_ruby_parser::DecoderResult::as

◆ tag

Tag lib_ruby_parser::DecoderResult::tag

The documentation for this struct was generated from the following file: