Struct jsonnet::JsonVal [] [src]

pub struct JsonVal<'a> { /* fields omitted */ }

Rust wrapper for borrowed libjsonnet JSON values.

See JsonValue for the owned version.

Methods

impl<'a> JsonVal<'a>
[src]

[src]

Construct a JsonVal from a pointer returned from a low-level jsonnet C function.

Safety

It is up to the caller to ensure that p was indeed allocated by vm.

[src]

Returns the inner pointer to this jsonnet value.

The returned pointer will be valid for as long as self is.

[src]

Returns the value, if it is a string.

[src]

Returns the value, if it is a number.

[src]

Returns the value, if it is a bool.

[src]

Returns Some(()) if the value is null.

Trait Implementations

Auto Trait Implementations

impl<'a> !Send for JsonVal<'a>

impl<'a> !Sync for JsonVal<'a>