pub struct Published<T>(/* private fields */);Expand description
A transferable read-only view of published state. Reading never evaluates a UI binding. Its local computation is independent: rebinding or mutating that local result cannot publish into the original shared cell.
ⓘ
let published = pax_runtime_api::Property::new(1u32).published();
published.set(2);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Published<T>
impl<T> RefUnwindSafe for Published<T>where
Property<T>: RefUnwindSafe,
impl<T> Send for Published<T>
impl<T> Sync for Published<T>
impl<T> Unpin for Published<T>
impl<T> UnsafeUnpin for Published<T>where
Property<T>: UnsafeUnpin,
impl<T> UnwindSafe for Published<T>where
Property<T>: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.