[][src]Trait gloo_file::BlobContents

pub trait BlobContents: Sealed {
    fn into_jsvalue(self) -> JsValue;
}

This trait is used to overload the Blob::new_with_options function, allowing a variety of types to be used to create a Blob. Ignore this, and use &u8, &str, etc to create a Blob.

The trait is sealed: it can only be implemented by types in this crate, as this crate relies on invariants regarding the JsValue returned from into_jsvalue.

Required methods

fn into_jsvalue(self) -> JsValue

Loading content...

Implementations on Foreign Types

impl<'a> BlobContents for &'a str[src]

impl<'a> BlobContents for &'a [u8][src]

impl BlobContents for ArrayBuffer[src]

Loading content...

Implementors

Loading content...