Skip to main content

MutObsReg

Struct MutObsReg 

Source
pub struct MutObsReg {
    pub id: u32,
    pub target_idx: usize,
    pub child_list: bool,
    pub attributes: bool,
    pub subtree: bool,
    pub callback: Value,
    pub attribute_old_value: bool,
    pub attribute_filter: Option<Vec<String>>,
    pub character_data: bool,
    pub character_data_old_value: bool,
}
Expand description

MutationObserver の登録エントリ。

Fields§

§id: u32§target_idx: usize§child_list: bool§attributes: bool§subtree: bool§callback: Value§attribute_old_value: bool

observe(target, {attributeOldValue: true})。変更前の属性値を レコードの oldValue として公開するかどうか。

§attribute_filter: Option<Vec<String>>

observe(target, {attributeFilter: [...]})。指定時はこの一覧に 含まれる属性名の変化のみ通知する(None は全属性を監視)。

§character_data: bool

observe(target, {characterData: true})(丸ごと未対応だった。 テキストノードの.data/.nodeValue/textContent変更を監視する オプション自体が存在せず、対応する通知ヘルパ〔notify_character_ data〕も無かったため、characterDataを指定してもコールバックが 一切呼ばれなかった。childList/attributesは既に対応済みで characterDataだけ抜けていた兄弟ギャップ。2026-07-17 発見・実装)。

§character_data_old_value: bool

observe(target, {characterDataOldValue: true})。変更前のテキスト 値をレコードのoldValueとして公開するかどうか(attributeOldValue と対)。

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.