pub enum CustomHtmlElementTag {
Div,
Button,
}Expand description
HTML tag name for a render command’s DOM host element (cotis-{id}).
Used via ExtraHTMLData::tag on render command
RenderCommandInfo::extra_data.
Variants§
Implementations§
Source§impl CustomHtmlElementTag
impl CustomHtmlElementTag
Sourcepub const fn as_json_str(self) -> &'static str
pub const fn as_json_str(self) -> &'static str
Returns the lowercase HTML tag name for this variant.
§Examples
use cotis_web::custom_data::CustomHtmlElementTag;
assert_eq!(CustomHtmlElementTag::Div.as_json_str(), "div");
assert_eq!(CustomHtmlElementTag::Button.as_json_str(), "button");Trait Implementations§
Source§impl Clone for CustomHtmlElementTag
impl Clone for CustomHtmlElementTag
Source§fn clone(&self) -> CustomHtmlElementTag
fn clone(&self) -> CustomHtmlElementTag
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 moreimpl Copy for CustomHtmlElementTag
Source§impl Debug for CustomHtmlElementTag
impl Debug for CustomHtmlElementTag
Source§impl Default for CustomHtmlElementTag
impl Default for CustomHtmlElementTag
Source§fn default() -> CustomHtmlElementTag
fn default() -> CustomHtmlElementTag
Returns the “default value” for a type. Read more
impl Eq for CustomHtmlElementTag
Source§impl PartialEq for CustomHtmlElementTag
impl PartialEq for CustomHtmlElementTag
impl StructuralPartialEq for CustomHtmlElementTag
Auto Trait Implementations§
impl Freeze for CustomHtmlElementTag
impl RefUnwindSafe for CustomHtmlElementTag
impl Send for CustomHtmlElementTag
impl Sync for CustomHtmlElementTag
impl Unpin for CustomHtmlElementTag
impl UnsafeUnpin for CustomHtmlElementTag
impl UnwindSafe for CustomHtmlElementTag
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<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.