pub(crate) type TextDecodeOptions = TextDecodeOptions;
Aliased Type§
struct TextDecodeOptions {
pub stream: bool,
}
Fields§
§stream: bool
Implementations
Source§impl TextDecodeOptions
impl TextDecodeOptions
pub fn empty() -> TextDecodeOptions
pub fn new( cx: JSContext, val: Handle<'_, Value>, ) -> Result<ConversionResult<TextDecodeOptions>, ()>
Source§impl TextDecodeOptions
impl TextDecodeOptions
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Trait Implementations
Source§impl Default for TextDecodeOptions
impl Default for TextDecodeOptions
Source§fn default() -> TextDecodeOptions
fn default() -> TextDecodeOptions
Returns the “default value” for a type. Read more
Source§impl FromJSValConvertible for TextDecodeOptions
impl FromJSValConvertible for TextDecodeOptions
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<TextDecodeOptions>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<TextDecodeOptions>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.