pub enum AdjacentPosition {
BeforeBegin,
AfterBegin,
BeforeEnd,
AfterEnd,
}Expand description
Position relative to a reference node, for insert_adjacent*.
Mirrors HTML insertAdjacentElement:
BeforeBegin— as previous sibling of referenceAfterBegin— as first child of referenceBeforeEnd— as last child of referenceAfterEnd— as next sibling of reference
Variants§
Trait Implementations§
Source§impl Clone for AdjacentPosition
impl Clone for AdjacentPosition
impl Copy for AdjacentPosition
Source§impl Debug for AdjacentPosition
impl Debug for AdjacentPosition
impl Eq for AdjacentPosition
Source§impl PartialEq for AdjacentPosition
impl PartialEq for AdjacentPosition
impl StructuralPartialEq for AdjacentPosition
Auto Trait Implementations§
impl Freeze for AdjacentPosition
impl RefUnwindSafe for AdjacentPosition
impl Send for AdjacentPosition
impl Sync for AdjacentPosition
impl Unpin for AdjacentPosition
impl UnsafeUnpin for AdjacentPosition
impl UnwindSafe for AdjacentPosition
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