pub enum AnyBox<'a> {
Owned(Box<dyn Any + Send + Sync>, String),
Borrowed(&'a (dyn Any + Send + Sync), String),
}
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> ResolveOwned<'a> for AnyBox<'a>
impl<'a> ResolveOwned<'a> for AnyBox<'a>
fn resolve_owned(self, _ctx: &Context<'_>) -> Result<Option<FieldValue<'a>>>
Auto Trait Implementations§
impl<'a> Freeze for AnyBox<'a>
impl<'a> !RefUnwindSafe for AnyBox<'a>
impl<'a> Send for AnyBox<'a>
impl<'a> Sync for AnyBox<'a>
impl<'a> Unpin for AnyBox<'a>
impl<'a> !UnwindSafe for AnyBox<'a>
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