neon::types

Type Alias StringResult

Source
pub type StringResult<'a> = Result<Handle<'a, JsString>, StringOverflow>;
Expand description

The result of constructing a new JsString.

Aliased Type§

enum StringResult<'a> {
    Ok(Handle<'a, JsString>),
    Err(StringOverflow),
}

Variants§

§1.0.0

Ok(Handle<'a, JsString>)

Contains the success value

§1.0.0

Err(StringOverflow)

Contains the error value

Trait Implementations§

Source§

impl<'a> ResultExt<Handle<'a, JsString>> for StringResult<'a>

Source§

fn or_throw<'b, C: Context<'b>>(self, cx: &mut C) -> JsResult<'a, JsString>