pub enum SiteKind {
Text,
Attr(Symbol),
Class(Symbol),
If,
Each,
Bind(Symbol),
Inspect,
}Expand description
What kind of thing a site is — which decides what the patcher emits for it.
Variants§
Text
A text child: {draft}.
Attr(Symbol)
An attribute value: title={name}.
Class(Symbol)
A conditional class: class:done={done}.
If
The condition set of an {if} — any of them changing may switch which arm renders.
Each
A loop’s collection.
Bind(Symbol)
A two-way binding, which SHOWS its field as well as writing it.
Inspect
An {inspect} scrutinee.
Trait Implementations§
impl Eq for SiteKind
impl StructuralPartialEq for SiteKind
Auto Trait Implementations§
impl Freeze for SiteKind
impl RefUnwindSafe for SiteKind
impl Send for SiteKind
impl Sync for SiteKind
impl Unpin for SiteKind
impl UnsafeUnpin for SiteKind
impl UnwindSafe for SiteKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.