ChordLookupResult
Namespace: Hex1b.Input
Assembly: Hex1b.dll
Result of looking up a key step in a chord trie.
csharp
public readonly struct ChordLookupResultConstructors
ChordLookupResult(ChordTrie)
Parameters:
node(ChordTrie):
csharp
public ChordLookupResult(ChordTrie node)Properties
HasAction
Whether the matched node has an action (could be executed now).
Returns: Boolean
csharp
public bool HasAction { get; }HasChildren
Whether the matched node has children (more steps possible).
Returns: Boolean
csharp
public bool HasChildren { get; }IsLeaf
Whether the matched node is a leaf (has action, no further children).
Returns: Boolean
csharp
public bool IsLeaf { get; }IsMatch
Whether the lookup found a match.
Returns: Boolean
csharp
public bool IsMatch { get; }IsNoMatch
Whether the lookup found no match.
Returns: Boolean
csharp
public bool IsNoMatch { get; }Node
The matched trie node, or null if no match.
Returns: ChordTrie
csharp
public ChordTrie? Node { get; }NoMatch
A result indicating no match was found.
Returns: ChordLookupResult
csharp
public static ChordLookupResult NoMatch { get; }Methods
ExecuteAsync(InputBindingActionContext)
Executes the action if present with the given context.
Parameters:
context(InputBindingActionContext):
Returns: Task
csharp
public Task ExecuteAsync(InputBindingActionContext context)