Struct jsonnet::Error [] [src]

pub struct Error<'a>(_);

Error returned from jsonnet routines on failure.

Methods from Deref<Target = JsonnetString<'a>>

Returns the contents as a &str.

Returns the contents as a &CStr.

Returns the inner pointer to this jsonnet string.

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

Transfer ownership to a C caller (presumably a jsonnet function).

If you call this, it is up to you to ensure that the string is freed correctly (using the appropriate jsonnet function), or the memory will leak.

Trait Implementations

impl<'a> Debug for Error<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for Error<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Eq for Error<'a>
[src]

impl<'a> From<JsonnetString<'a>> for Error<'a>
[src]

Performs the conversion.

impl<'a> Deref for Error<'a>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a> Display for Error<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Error for Error<'a>
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more