pub struct HostRef {
pub class: u8,
pub id: usize,
}Expand description
ホストが持つ物の識別子(種類の番号と、その種類の中での番号)。
class の最上位ビット(HOST_CLASS_BY_ID)が立つ種類は、ホスト側の表の番号から毎回ハンドルを作り直す物(DOM 要素)で、
同じ id のハンドルは === で等しい。立たない種類(style・document など)は、作った 1 つ 1 つが別の物(Rc::ptr_eq)。
Fields§
§class: u8§id: usizeImplementations§
Trait Implementations§
impl Copy for HostRef
impl Eq for HostRef
impl StructuralPartialEq for HostRef
Auto Trait Implementations§
impl Freeze for HostRef
impl RefUnwindSafe for HostRef
impl Send for HostRef
impl Sync for HostRef
impl Unpin for HostRef
impl UnsafeUnpin for HostRef
impl UnwindSafe for HostRef
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.