pub struct Image { /* private fields */ }Expand description
An image asset TODO: Support the full HTML img tag
Implementations§
Trait Implementations§
Source§impl Htmlify for Image
impl Htmlify for Image
Source§fn tag(&self) -> Cow<'static, str>
fn tag(&self) -> Cow<'static, str>
Sets the HTML tag associated when converting this to an element.
Source§fn attributes(&self) -> Vec<Attribute>
fn attributes(&self) -> Vec<Attribute>
Sets the attributes to include when converting this to an element.
Source§fn inner_html_as_string(&self) -> String
fn inner_html_as_string(&self) -> String
Stringifies the inner HTML
Source§fn as_raw_html(&self) -> String
fn as_raw_html(&self) -> String
Convert this to a raw string of HTML
Source§fn as_element(&self) -> Option<Element>
fn as_element(&self) -> Option<Element>
Convert this into a web_sys::Element
Source§fn as_yew_node(&self) -> VNode
fn as_yew_node(&self) -> VNode
Convert this into ::yew::Html
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.