Enum minijinja::value::Primitive [−][src]
pub enum Primitive<'a> {
Undefined,
None,
Bool(bool),
U64(u64),
U128(u128),
I64(i64),
I128(i128),
F64(f64),
Char(char),
Str(&'a str),
Bytes(&'a [u8]),
}
Expand description
An alternative view of a value.
Variants
Bool(bool)
Tuple Fields of Bool
0: bool
U64(u64)
Tuple Fields of U64
0: u64
U128(u128)
Tuple Fields of U128
0: u128
I64(i64)
Tuple Fields of I64
0: i64
I128(i128)
Tuple Fields of I128
0: i128
F64(f64)
Tuple Fields of F64
0: f64
Char(char)
Tuple Fields of Char
0: char
Str(&'a str)
Tuple Fields of Str
0: &'a str
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Primitive<'a>
impl<'a> UnwindSafe for Primitive<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more