Struct jsonnet::Error
[−]
[src]
pub struct Error<'a>(_);
Error returned from jsonnet routines on failure.
Methods from Deref<Target = JsonnetString<'a>>
pub fn as_str(&self) -> &'a str
[src]
Returns the contents as a &str
.
pub fn as_cstr(&self) -> &'a CStr
[src]
Returns the contents as a &CStr
.
pub fn as_ptr(&self) -> *const c_char
[src]
Returns the inner pointer to this jsonnet string.
The returned pointer will be valid for as long as self
is.
Trait Implementations
impl<'a> Debug for Error<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> PartialEq for Error<'a>
[src]
fn eq(&self, __arg_0: &Error<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Eq for Error<'a>
[src]
impl<'a> From<JsonnetString<'a>> for Error<'a>
[src]
fn from(s: JsonnetString<'a>) -> Self
[src]
Performs the conversion.
impl<'a> From<Error<'a>> for JsonnetString<'a>
[src]
impl<'a> Deref for Error<'a>
[src]
type Target = JsonnetString<'a>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<'a> Display for Error<'a>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more