#[non_exhaustive]pub enum AttributeKey {
PromotedStr {
value: &'static &'static str,
context: HtmlContext,
},
StaticStr {
value: &'static str,
context: HtmlContext,
},
String {
value: String,
context: HtmlContext,
},
}Expand description
An attribute key captured from any AttributeKeyViewParts value.
Keys retain their HTML context for validation when rendered. Equality and hashing use only the key’s text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
Source§impl AttributeKeyViewParts for AttributeKey
impl AttributeKeyViewParts for AttributeKey
Source§fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
Appends this attribute key to the view being built.
Source§impl AttributeKeyViewParts for &AttributeKey
impl AttributeKeyViewParts for &AttributeKey
Source§fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
Appends this attribute key to the view being built.
Source§impl Borrow<str> for AttributeKey
impl Borrow<str> for AttributeKey
Source§impl Clone for AttributeKey
impl Clone for AttributeKey
Source§impl Debug for AttributeKey
impl Debug for AttributeKey
impl Eq for AttributeKey
Source§impl Hash for AttributeKey
impl Hash for AttributeKey
Auto Trait Implementations§
impl Freeze for AttributeKey
impl RefUnwindSafe for AttributeKey
impl Send for AttributeKey
impl Sync for AttributeKey
impl Unpin for AttributeKey
impl UnsafeUnpin for AttributeKey
impl UnwindSafe for AttributeKey
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