class ValueDecoder
pub class ValueDecoder :: [Decoder]
Conforms to Decoder.
A decoder that reads a Value: tree.read<T>(), or tree.decoder() for one to pass on.
Methods
pub mut fn isNull(): bool throws DecodeError
pub mut fn decodeNull(): void throws DecodeError
pub mut fn decodeBool(): bool throws DecodeError
pub mut fn decodeInt(): int throws DecodeError
pub mut fn decodeUint(): uint throws DecodeError
pub mut fn decodeFloat(): float throws DecodeError
pub mut fn decodeString(): string throws DecodeError
pub mut fn decodeBytes(): uint8[] throws DecodeError
pub mut fn beginSeq(): ?int throws DecodeError
pub fn seqHasNext(): bool throws DecodeError
pub mut fn endSeq(): void throws DecodeError
pub mut fn beginMap(): ?int throws DecodeError
pub fn mapHasNext(): bool throws DecodeError
pub mut fn endMap(): void throws DecodeError
pub mut fn beginStruct(name: string, fields: string[]): void throws DecodeError
pub mut fn structField(name: string): bool throws DecodeError
pub mut fn endStruct(denyUnknown: bool): void throws DecodeError
pub mut fn beginVariant(enumName: string, variants: string[]): int throws DecodeError
pub fn variantHasPayload(): bool throws DecodeError
pub mut fn endVariant(): void throws DecodeError
pub fn path(): string