Enum ValueKind
#[non_exhaustive]
pub enum ValueKind
The kind of values Tera can handle
Variants
-
Undefined This is mostly used internally to represent a lookup failure and you're unlikely to need to use that except when writing some special filters/functions that lookups data in the state.
-
None An explicit
Nonevalue: it is there and found, but it isNone.-
Bool -
U64 -
I64 -
U128 -
I128 -
F64 -
String -
Array -
Map -
Bytes If you try to display bytes values in a template (eg
{{ bytes }}) it will try to render it as lossy UTF-8. There is no way to create aValue::Bytesfrom inside a template: it's mostly there for interaction with filters etc
Trait Implementations
impl Clone for ValueKind
fn clone(&self) -> Self
impl Copy for ValueKind
impl Debug for ValueKind
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for ValueKind
impl Hash for ValueKind
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ValueKind
fn eq(&self, other: &Self) -> bool