pub struct Scope<'a, 'b> {
pub path: HeapLiveIdPath,
pub data: ScopeDataMut<'a>,
pub props: ScopeDataRef<'b>,
pub index: usize,
}
Fields§
§path: HeapLiveIdPath
§data: ScopeDataMut<'a>
§props: ScopeDataRef<'b>
§index: usize
Implementations§
Source§impl<'a, 'b> Scope<'a, 'b>
impl<'a, 'b> Scope<'a, 'b>
pub fn with_data<T>(v: &'a mut T) -> Scope<'a, 'b>where
T: Any,
pub fn with_data_props<T, U>(v: &'a mut T, w: &'b U) -> Scope<'a, 'b>
pub fn with_props<T>(w: &'b T) -> Scope<'a, 'b>where
T: Any,
pub fn with_data_index<T>(v: &'a mut T, index: usize) -> Scope<'a, 'b>where
T: Any,
pub fn with_data_props_index<T>(
v: &'a mut T,
w: &'b T,
index: usize,
) -> Scope<'a, 'b>where
T: Any,
pub fn with_props_index<T>(w: &'b T, index: usize) -> Scope<'a, 'b>where
T: Any,
pub fn empty() -> Scope<'a, 'b>
pub fn with_id<F, R>(&mut self, id: LiveId, f: F) -> R
pub fn override_props<T, F, R>(&mut self, props: &'b T, f: F) -> R
pub fn override_props_index<T, F, R>( &mut self, props: &'b T, index: usize, f: F, ) -> R
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for Scope<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for Scope<'a, 'b>
impl<'a, 'b> !Send for Scope<'a, 'b>
impl<'a, 'b> !Sync for Scope<'a, 'b>
impl<'a, 'b> Unpin for Scope<'a, 'b>
impl<'a, 'b> !UnwindSafe for Scope<'a, 'b>
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