pub struct Img {
pub src: String,
pub alt: String,
pub classes: ClassList,
pub height: f64,
pub depth: f64,
pub max_font_size: f64,
pub style: CssStyle,
}
Expand description
Image embed element
Fields§
§src: String
Source URL of the image
alt: String
Alternative text for the image
classes: ClassList
CSS classes applied to this image
height: f64
Height of this image element
depth: f64
Depth of this image element
max_font_size: f64
Maximum font size used in this image
style: CssStyle
Inline CSS style object
Implementations§
Trait Implementations§
Source§impl VirtualNode for Img
Implement VirtualNode for Img
impl VirtualNode for Img
Implement VirtualNode for Img
Source§fn write_markup(&self, fmt: &mut Formatter<'_>) -> Result<(), ParseError>
fn write_markup(&self, fmt: &mut Formatter<'_>) -> Result<(), ParseError>
Convert into HTML markup by writing into the provided formatter.
Auto Trait Implementations§
impl Freeze for Img
impl RefUnwindSafe for Img
impl Send for Img
impl Sync for Img
impl Unpin for Img
impl UnwindSafe for Img
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