LLamaSharp/docs/xmldocs/llama.native.llamagrammarel...

1.8 KiB

LLamaGrammarElement

Namespace: LLama.Native

An element of a grammar

public struct LLamaGrammarElement

Inheritance ObjectValueTypeLLamaGrammarElement
Implements IEquatable<LLamaGrammarElement>

Fields

Type

The type of this element

public LLamaGrammarElementType Type;

Value

Unicode code point or rule ID

public uint Value;

Constructors

LLamaGrammarElement(LLamaGrammarElementType, UInt32)

Construct a new LLamaGrammarElement

LLamaGrammarElement(LLamaGrammarElementType type, uint value)

Parameters

type LLamaGrammarElementType

value UInt32

Methods

Equals(LLamaGrammarElement)

bool Equals(LLamaGrammarElement other)

Parameters

other LLamaGrammarElement

Returns

Boolean

Equals(Object)

bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

int GetHashCode()

Returns

Int32

IsCharElement()

bool IsCharElement()

Returns

Boolean