Struct glory_core::reflow::Cage
source · pub struct Cage<T>where
T: Debug + 'static,{ /* private fields */ }Implementations§
source§impl<T> Cage<T>where
T: Debug,
impl<T> Cage<T>where
T: Debug,
pub fn get(&self) -> Ref<'_, T>
pub fn get_untracked(&self) -> Ref<'_, T>
pub fn revise<F, R>(&self, opt: F) -> R
pub fn revise_silent<F, R>(&self, opt: F) -> R
pub fn borrow(&self) -> Ref<'_, T>
pub fn map<M, G>(&self, mapper: M) -> Bond<G>
pub fn read(&self) -> Lotus<T>
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for Cage<T>where
T: Deserialize<'de> + Debug + 'static,
impl<'de, T> Deserialize<'de> for Cage<T>where
T: Deserialize<'de> + Debug + 'static,
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> IntoFiller for Cage<T>
impl<T> IntoFiller for Cage<T>
fn into_filler(self) -> Filler
source§impl<T> PartialEq for Cage<T>
impl<T> PartialEq for Cage<T>
source§impl<T> Revisable for Cage<T>where
T: Debug,
impl<T> Revisable for Cage<T>where
T: Debug,
fn id(&self) -> RevisableId
fn holder_id(&self) -> Option<HolderId>
fn version(&self) -> usize
fn view_ids(&self) -> Rc<RefCell<IndexSet<ViewId>>>
fn bind_view(&self, view_id: &ViewId)
fn unbind_view(&self, view_id: &ViewId)
fn unlace_view(&self, view_id: &ViewId, loose: usize)
fn clone_boxed(&self) -> Box<dyn Revisable>
fn is_revising(&self) -> bool
impl<T> Eq for Cage<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Cage<T>
impl<T> !Send for Cage<T>
impl<T> !Sync for Cage<T>
impl<T> Unpin for Cage<T>
impl<T> !UnwindSafe for Cage<T>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.