pub struct CapturedBinding { /* private fields */ }Expand description
One shared binding cell paired with its identity in the managed graph.
Implementations§
Source§impl CapturedBinding
impl CapturedBinding
Sourcepub const fn new(cell: BindingCell, managed: ManagedHandle) -> Self
pub const fn new(cell: BindingCell, managed: ManagedHandle) -> Self
Associates an existing binding cell with its managed allocation.
Sourcepub const fn cell(&self) -> &BindingCell
pub const fn cell(&self) -> &BindingCell
Borrows the shared lexical cell.
Sourcepub const fn managed(&self) -> ManagedHandle
pub const fn managed(&self) -> ManagedHandle
Returns the managed identity traced for this capture.
Trait Implementations§
Source§impl Clone for CapturedBinding
impl Clone for CapturedBinding
Source§fn clone(&self) -> CapturedBinding
fn clone(&self) -> CapturedBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapturedBinding
impl RefUnwindSafe for CapturedBinding
impl Send for CapturedBinding
impl Sync for CapturedBinding
impl Unpin for CapturedBinding
impl UnsafeUnpin for CapturedBinding
impl UnwindSafe for CapturedBinding
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