Struct glory_core::scope::Scope
source · pub struct Scope {
pub view_id: ViewId,
pub truck: Rc<RefCell<Truck>>,
/* private fields */
}Fields§
§view_id: ViewId§truck: Rc<RefCell<Truck>>Implementations§
source§impl Scope
impl Scope
pub fn new(view_id: ViewId, truck: Rc<RefCell<Truck>>) -> Self
pub fn new_root(view_id: ViewId, truck: Rc<RefCell<Truck>>) -> Self
pub fn is_root(&self) -> bool
pub fn is_attached(&self) -> bool
pub fn is_built(&self) -> bool
pub fn parent_node(&self) -> Option<&Node>
pub fn view_id(&self) -> &ViewId
pub fn beget(&self) -> Self
pub fn graff(&self) -> Option<&Node>
pub fn truck(&self) -> Ref<'_, Truck>
pub fn truck_mut(&self) -> RefMut<'_, Truck>
pub fn child_views(&self) -> &IndexMap<ViewId, View>
pub fn attach_child(&mut self, view_id: &ViewId)
pub fn detach_child(&mut self, view_id: &ViewId) -> Option<View>
Trait Implementations§
Auto Trait Implementations§
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