Struct hotg_rune_proc_blocks::TensorDescriptors
source · [−]pub struct TensorDescriptors<'a>(pub Cow<'a, [TensorDescriptor<'a>]>);
Tuple Fields
0: Cow<'a, [TensorDescriptor<'a>]>
Methods from Deref<Target = Cow<'a, [TensorDescriptor<'a>]>>
🔬 This is a nightly-only experimental API. (cow_is_borrowed
)
🔬 This is a nightly-only experimental API. (
cow_is_borrowed
)Returns true if the data is borrowed, i.e. if to_mut
would require additional work.
Examples
#![feature(cow_is_borrowed)]
use std::borrow::Cow;
let cow = Cow::Borrowed("moo");
assert!(cow.is_borrowed());
let bull: Cow<'_, str> = Cow::Owned("...moo?".to_string());
assert!(!bull.is_borrowed());
🔬 This is a nightly-only experimental API. (cow_is_borrowed
)
🔬 This is a nightly-only experimental API. (
cow_is_borrowed
)Returns true if the data is owned, i.e. if to_mut
would be a no-op.
Examples
#![feature(cow_is_borrowed)]
use std::borrow::Cow;
let cow: Cow<'_, str> = Cow::Owned("moo".to_string());
assert!(cow.is_owned());
let bull = Cow::Borrowed("...moo?");
assert!(!bull.is_owned());
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Creates a value from an iterator. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for TensorDescriptors<'a>
impl<'a> Send for TensorDescriptors<'a>
impl<'a> Sync for TensorDescriptors<'a>
impl<'a> Unpin for TensorDescriptors<'a>
impl<'a> UnwindSafe for TensorDescriptors<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more