pub(crate) struct WeakRangeVec {
cell: RefCell<WeakRefVec<Range>>,
}
Fields§
§cell: RefCell<WeakRefVec<Range>>
Implementations§
Source§impl WeakRangeVec
impl WeakRangeVec
Sourcepub(crate) fn increase_above(&self, node: &Node, offset: u32, delta: u32)
pub(crate) fn increase_above(&self, node: &Node, offset: u32, delta: u32)
Used for steps 2.1-2. when inserting a node. https://dom.spec.whatwg.org/#concept-node-insert
Sourcepub(crate) fn decrease_above(&self, node: &Node, offset: u32, delta: u32)
pub(crate) fn decrease_above(&self, node: &Node, offset: u32, delta: u32)
Used for steps 4-5. when removing a node. https://dom.spec.whatwg.org/#concept-node-remove
Sourcepub(crate) fn drain_to_parent(&self, context: &UnbindContext<'_>, child: &Node)
pub(crate) fn drain_to_parent(&self, context: &UnbindContext<'_>, child: &Node)
Used for steps 2-3. when removing a node.
Sourcepub(crate) fn drain_to_preceding_text_sibling(
&self,
node: &Node,
sibling: &Node,
length: u32,
)
pub(crate) fn drain_to_preceding_text_sibling( &self, node: &Node, sibling: &Node, length: u32, )
Used for steps 6.1-2. when normalizing a node. https://dom.spec.whatwg.org/#dom-node-normalize
Sourcepub(crate) fn move_to_text_child_at(
&self,
node: &Node,
offset: u32,
child: &Node,
new_offset: u32,
)
pub(crate) fn move_to_text_child_at( &self, node: &Node, offset: u32, child: &Node, new_offset: u32, )
Used for steps 6.3-4. when normalizing a node. https://dom.spec.whatwg.org/#dom-node-normalize
Sourcepub(crate) fn replace_code_units(
&self,
node: &Node,
offset: u32,
removed_code_units: u32,
added_code_units: u32,
)
pub(crate) fn replace_code_units( &self, node: &Node, offset: u32, removed_code_units: u32, added_code_units: u32, )
Used for steps 8-11. when replacing character data. https://dom.spec.whatwg.org/#concept-cd-replace
Sourcepub(crate) fn move_to_following_text_sibling_above(
&self,
node: &Node,
offset: u32,
sibling: &Node,
)
pub(crate) fn move_to_following_text_sibling_above( &self, node: &Node, offset: u32, sibling: &Node, )
Used for steps 7.2-3. when splitting a text node. https://dom.spec.whatwg.org/#concept-text-split
Sourcepub(crate) fn increment_at(&self, node: &Node, offset: u32)
pub(crate) fn increment_at(&self, node: &Node, offset: u32)
Used for steps 7.4-5. when splitting a text node. https://dom.spec.whatwg.org/#concept-text-split
fn map_offset_above<F: FnMut(u32) -> u32>(&self, node: &Node, offset: u32, f: F)
pub(crate) fn push(&self, ref_: WeakRef<Range>)
fn remove(&self, range: &Range) -> WeakRef<Range>
Trait Implementations§
Source§impl Default for WeakRangeVec
impl Default for WeakRangeVec
Source§impl MallocSizeOf for WeakRangeVec
impl MallocSizeOf for WeakRangeVec
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Auto Trait Implementations§
impl !Freeze for WeakRangeVec
impl !RefUnwindSafe for WeakRangeVec
impl !Send for WeakRangeVec
impl !Sync for WeakRangeVec
impl Unpin for WeakRangeVec
impl !UnwindSafe for WeakRangeVec
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> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.