pub enum ScopedOutput<'env> {
Borrowed(TensorView<'env>),
Owned(DescriptorSlot),
Metadata(OutputMetadata),
}Expand description
Output classification used by scoped providers.
Variants§
Borrowed(TensorView<'env>)
A result that aliases an immutable caller input.
Owned(DescriptorSlot)
A fresh result owned by the scoped bundle’s allocation group.
Metadata(OutputMetadata)
Metadata-only output with no tensor payload.
Trait Implementations§
Auto Trait Implementations§
impl<'env> !RefUnwindSafe for ScopedOutput<'env>
impl<'env> !UnwindSafe for ScopedOutput<'env>
impl<'env> Freeze for ScopedOutput<'env>
impl<'env> Send for ScopedOutput<'env>
impl<'env> Sync for ScopedOutput<'env>
impl<'env> Unpin for ScopedOutput<'env>
impl<'env> UnsafeUnpin for ScopedOutput<'env>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more