pub struct DomNode {
pub tag: String,
pub is_text: bool,
pub id: String,
pub classes: Vec<String>,
pub style: BTreeMap<String, String>,
pub attrs: BTreeMap<String, String>,
pub text_override: Option<String>,
pub initial_text: String,
pub parent: Option<usize>,
pub children: Vec<usize>,
pub classes_dirty: bool,
pub style_dirty: bool,
}Expand description
ブリッジ上の 1 ノード。要素またはテキスト。
Fields§
§tag: String要素タグ(小文字)。テキストノードは空。
is_text: bool§id: String§classes: Vec<String>§style: BTreeMap<String, String>インライン style(プロパティ→値)。
attrs: BTreeMap<String, String>その他の属性(id/class/style 以外も含む生の値)。
text_override: Option<String>テキストノードの内容、または textContent 上書き値。
initial_text: String構築時のテキスト(textContent ゲッタ用)。
parent: Option<usize>§children: Vec<usize>§classes_dirty: boolJS が classes を変更したか(apply で焼き戻す)。
style_dirty: boolJS が style を変更したか。
Auto Trait Implementations§
impl Freeze for DomNode
impl RefUnwindSafe for DomNode
impl Send for DomNode
impl Sync for DomNode
impl Unpin for DomNode
impl UnsafeUnpin for DomNode
impl UnwindSafe for DomNode
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