[−][src]Trait yew::services::reader::IBlob
A blob object represents a file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format.
Provided methods
fn len(&self) -> u64
The size, in bytes, of the data contained in the Blob object.
fn mime(&self) -> Option<String>
A string indicating the MIME type of the data contained in the Blob
.
fn slice<T>(&self, range: T) -> Blob where
T: RangeBounds<u64>,
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.
fn slice_with_content_type<T>(&self, range: T, content_type: &str) -> Blob where
T: RangeBounds<u64>,
T: RangeBounds<u64>,
slice Blob
with the provided content_type
.