pub struct SignalIdentity(/* private fields */);Expand description
Stable identity for reactive signal instances that own observable state.
Implementations§
Source§impl SignalIdentity
impl SignalIdentity
Sourcepub fn from_rc<T>(value: &Rc<T>) -> Self
pub fn from_rc<T>(value: &Rc<T>) -> Self
Creates an identity from a shared allocation pointer.
The allocation must be tied to the semantic signal instance and be cloned together with that instance.
Sourcepub const fn with_discriminator(self, discriminator: usize) -> Self
pub const fn with_discriminator(self, discriminator: usize) -> Self
Creates a stable derived identity for a property of this signal.
Sourcepub const fn combine(self, other: Self) -> Self
pub const fn combine(self, other: Self) -> Self
Combines two stable signal identities into one deterministic identity.
Sourcepub fn call_site_discriminator<T: 'static>(
caller: &'static Location<'static>,
) -> usize
pub fn call_site_discriminator<T: 'static>( caller: &'static Location<'static>, ) -> usize
Creates a stable discriminator from a call site and semantic wrapper type.
Trait Implementations§
Source§impl Clone for SignalIdentity
impl Clone for SignalIdentity
Source§fn clone(&self) -> SignalIdentity
fn clone(&self) -> SignalIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SignalIdentity
Source§impl Debug for SignalIdentity
impl Debug for SignalIdentity
impl Eq for SignalIdentity
Source§impl Hash for SignalIdentity
impl Hash for SignalIdentity
Source§impl Ord for SignalIdentity
impl Ord for SignalIdentity
Source§fn cmp(&self, other: &SignalIdentity) -> Ordering
fn cmp(&self, other: &SignalIdentity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignalIdentity
impl PartialEq for SignalIdentity
Source§impl PartialOrd for SignalIdentity
impl PartialOrd for SignalIdentity
impl StructuralPartialEq for SignalIdentity
Auto Trait Implementations§
impl Freeze for SignalIdentity
impl RefUnwindSafe for SignalIdentity
impl Send for SignalIdentity
impl Sync for SignalIdentity
impl Unpin for SignalIdentity
impl UnsafeUnpin for SignalIdentity
impl UnwindSafe for SignalIdentity
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