[][src]Trait yew::services::reader::IBlob

pub trait IBlob: ReferenceType {
    fn len(&self) -> u64 { ... }
fn mime(&self) -> Option<String> { ... }
fn slice<T>(&self, range: T) -> Blob
    where
        T: RangeBounds<u64>
, { ... }
fn slice_with_content_type<T>(&self, range: T, content_type: &str) -> Blob
    where
        T: RangeBounds<u64>
, { ... } }

A blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format.

(JavaScript docs)

Provided methods

fn len(&self) -> u64

The size, in bytes, of the data contained in the Blob object.

(JavaScript docs)

fn mime(&self) -> Option<String>

A string indicating the MIME type of the data contained in the Blob.

(JavaScript docs)

fn slice<T>(&self, range: T) -> Blob where
    T: RangeBounds<u64>, 

Create a new Blob object containing the data in the specified range of bytes of the source Blob.

See also slice_with_content_type.

(JavaScript docs)

fn slice_with_content_type<T>(&self, range: T, content_type: &str) -> Blob where
    T: RangeBounds<u64>, 

slice Blob with the provided content_type.

Loading content...

Implementors

impl IBlob for Blob[src]

impl IBlob for File[src]

Loading content...