pub struct ContentMeta {
pub mime: String,
pub len: u64,
pub w: u32,
pub h: u32,
}Expand description
What a document records about content instead of its bytes, so placeholders reserve the eventual dimensions before those bytes arrive.
Fields§
§mime: StringMedia type, sniffed from the content (image/png, …). Empty if unknown.
len: u64§w: u32Pixel width; 0 when no header can be read.
h: u32Pixel height; 0 when no header can be read.
Trait Implementations§
Source§impl Clone for ContentMeta
impl Clone for ContentMeta
Source§fn clone(&self) -> ContentMeta
fn clone(&self) -> ContentMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentMeta
impl Debug for ContentMeta
Source§impl Default for ContentMeta
impl Default for ContentMeta
Source§fn default() -> ContentMeta
fn default() -> ContentMeta
Returns the “default value” for a type. Read more
impl Eq for ContentMeta
Source§impl PartialEq for ContentMeta
impl PartialEq for ContentMeta
impl StructuralPartialEq for ContentMeta
Auto Trait Implementations§
impl Forget for ContentMeta
impl Freeze for ContentMeta
impl Move for ContentMeta
impl RefUnwindSafe for ContentMeta
impl Send for ContentMeta
impl Sync for ContentMeta
impl Unpin for ContentMeta
impl UnsafeUnpin for ContentMeta
impl UnwindSafe for ContentMeta
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