pub struct Scope {
pub id: ScopeId,
pub parent_id: Option<ScopeId>,
pub height: usize,
pub parent_node_id_in_parent: NodeId,
pub path_in_parent: Box<[u32]>,
pub nodes: PathGraph<PathNode>,
pub key: DiffKey,
pub comp: Rc<dyn Fn(Rc<dyn ComponentProps>) -> Element>,
pub props: Rc<dyn ComponentProps>,
pub element: Option<PathElement>,
}Fields§
§id: ScopeId§parent_id: Option<ScopeId>§height: usize§parent_node_id_in_parent: NodeId§path_in_parent: Box<[u32]>§nodes: PathGraph<PathNode>§key: DiffKey§comp: Rc<dyn Fn(Rc<dyn ComponentProps>) -> Element>§props: Rc<dyn ComponentProps>§element: Option<PathElement>Implementations§
Source§impl Scope
impl Scope
pub fn with_element<D>(&self, target_path: &[u32], with: D)where
D: FnOnce(&PathElement),
Auto Trait Implementations§
impl Freeze for Scope
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl Unpin for Scope
impl !UnwindSafe for Scope
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