Struct sycamore::noderef::NodeRef [−][src]
pub struct NodeRef<G: GenericNode>(_);
Expand description
A reference to a GenericNode
.
Implementations
Gets the T stored inside the NodeRef
.
Panics
Panics if the NodeRef
is not set yet or is the wrong type.
For a non panicking version, see NodeRef::try_get
.
Tries to get the T stored inside the NodeRef
or None
if it is not yet set or
the wrong type.
For a panicking version, see NodeRef::get
.
Gets the raw GenericNode
stored inside the NodeRef
.
Panics
Panics if the NodeRef
is not set yet.
For a non panicking version, see NodeRef::try_get_raw
.
Tries to get the raw GenericNode
stored inside the NodeRef
or None
if it is
not yet set.
For a panicking version, see NodeRef::get
.
Sets the NodeRef
with the specified GenericNode
.
Trait Implementations
Auto Trait Implementations
impl<G> !RefUnwindSafe for NodeRef<G>
impl<G> !UnwindSafe for NodeRef<G>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.