pub enum PathElement {
Component {
key: DiffKey,
comp: Rc<dyn Fn(Rc<dyn ComponentProps>) -> Element>,
props: Rc<dyn ComponentProps>,
path: Box<[u32]>,
},
Element {
key: DiffKey,
element: Rc<dyn ElementExt>,
elements: Box<[PathElement]>,
path: Box<[u32]>,
},
}Variants§
Implementations§
Source§impl PathElement
impl PathElement
pub fn with_element<D>(&self, target_path: &[u32], with: D)where
D: FnOnce(&PathElement),
pub fn from_element(path: Vec<u32>, element: Element) -> Self
pub fn diff(&self, previous: Option<&Self>, diff: &mut Diff)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathElement
impl !RefUnwindSafe for PathElement
impl !Send for PathElement
impl !Sync for PathElement
impl Unpin for PathElement
impl !UnwindSafe for PathElement
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more