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: Any>(v: &'a mut T) -> Self
pub fn with_data_props<T: Any + Sized, U: Any + Sized>( v: &'a mut T, w: &'b U, ) -> Self
pub fn with_props<T: Any>(w: &'b T) -> Self
pub fn with_data_index<T: Any>(v: &'a mut T, index: usize) -> Self
pub fn with_data_props_index<T: Any>( v: &'a mut T, w: &'b T, index: usize, ) -> Self
pub fn with_props_index<T: Any>(w: &'b T, index: usize) -> Self
pub fn empty() -> Self
pub fn with_id<F, R>(&mut self, id: LiveId, f: F) -> R
pub fn override_props<T: Any, F, R>(&mut self, props: &'b T, f: F) -> R
pub fn override_props_index<T: Any, 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