pub struct File(/* private fields */);
Expand description
The File interface provides information about files and allows JavaScript in a web page to access their content.
Implementations§
Trait Implementations§
Source§impl IBlob for File
impl IBlob for File
Source§fn mime(&self) -> Option<String>
fn mime(&self) -> Option<String>
A string indicating the MIME type of the data contained in the
Blob
. Read moreSource§fn slice<T>(&self, range: T) -> Blobwhere
T: RangeBounds<u64>,
fn slice<T>(&self, range: T) -> Blobwhere
T: RangeBounds<u64>,
Create a new
Blob
object containing the data in the specified range of bytes of the
source Blob
. Read moreSource§fn slice_with_content_type<T>(&self, range: T, content_type: &str) -> Blobwhere
T: RangeBounds<u64>,
fn slice_with_content_type<T>(&self, range: T, content_type: &str) -> Blobwhere
T: RangeBounds<u64>,
Source§impl InstanceOf for File
impl InstanceOf for File
Source§impl ReferenceType for File
impl ReferenceType for File
Source§unsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper.
Doesn’t do any type checking; highly unsafe to use!
impl Eq for File
impl JsSerialize for File
impl StructuralPartialEq for File
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)