pub struct EffectAnnotation {
pub scheme: EffectScheme,
pub description: Option<String>,
}Expand description
Effect annotation for expressions
Fields§
§scheme: EffectSchemeThe effect scheme for this expression
description: Option<String>Optional description
Implementations§
Source§impl EffectAnnotation
impl EffectAnnotation
pub fn new(scheme: EffectScheme) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Sourcepub fn differentiable() -> Self
pub fn differentiable() -> Self
Create a differentiable effect annotation
Trait Implementations§
Source§impl Clone for EffectAnnotation
impl Clone for EffectAnnotation
Source§fn clone(&self) -> EffectAnnotation
fn clone(&self) -> EffectAnnotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EffectAnnotation
impl Debug for EffectAnnotation
Source§impl<'de> Deserialize<'de> for EffectAnnotation
impl<'de> Deserialize<'de> for EffectAnnotation
Source§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
Source§impl PartialEq for EffectAnnotation
impl PartialEq for EffectAnnotation
Source§impl Serialize for EffectAnnotation
impl Serialize for EffectAnnotation
impl Eq for EffectAnnotation
impl StructuralPartialEq for EffectAnnotation
Auto Trait Implementations§
impl Freeze for EffectAnnotation
impl RefUnwindSafe for EffectAnnotation
impl Send for EffectAnnotation
impl Sync for EffectAnnotation
impl Unpin for EffectAnnotation
impl UnwindSafe for EffectAnnotation
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