pub struct Transformation {
pub name: Token,
pub loc: FileLocation,
pub auxiliary: AuxiliaryVerb,
pub verb: Reference<(Token, Token), VerbDefinitionTarget>,
pub inputs: Vec<Reference<Subject, VariableTarget>>,
pub outputs: Vec<Reference<Subject, VariableTarget>>,
pub subclauses: DesignClauses,
pub stringency: Stringency,
}
Expand description
Transformation requirement or constraint.
Fields§
§name: Token
Transformation’s name or label.
loc: FileLocation
Complete transformation’s textual location.
auxiliary: AuxiliaryVerb
Transformation’s auxiliary verb.
verb: Reference<(Token, Token), VerbDefinitionTarget>
Transformation’s verb and preposition.
inputs: Vec<Reference<Subject, VariableTarget>>
Transformation’s input flows.
outputs: Vec<Reference<Subject, VariableTarget>>
Transformation’s output flows.
subclauses: DesignClauses
Transformation’s subclauses (should be AND-concatenated).
stringency: Stringency
Whether this is a requirement or a constraint.
Trait Implementations§
Source§impl Clone for Transformation
impl Clone for Transformation
Source§fn clone(&self) -> Transformation
fn clone(&self) -> Transformation
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 Transformation
impl Debug for Transformation
Source§impl Default for Transformation
impl Default for Transformation
Source§fn default() -> Transformation
fn default() -> Transformation
Returns the “default value” for a type. Read more
Source§impl Display for Transformation
impl Display for Transformation
Source§impl<'a> FetchTarget<'a, Transformation> for TransformationTarget
impl<'a> FetchTarget<'a, Transformation> for TransformationTarget
Source§fn fetch_values(
&self,
spec: &'a Specification,
) -> Result<&'a [Transformation], TargetError<Self>>
fn fetch_values( &self, spec: &'a Specification, ) -> Result<&'a [Transformation], TargetError<Self>>
Fetch the map reference containing the targeted item.
Source§fn fetch_values_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut [Transformation], TargetError<Self>>
fn fetch_values_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut [Transformation], TargetError<Self>>
Fetch the mutable map reference containing the targeted item.
Source§fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
fn fetch(&self, spec: &'a Specification) -> Result<&'a V, TargetError<Self>>
Fetch a reference to the target from the specification.
Source§fn fetch_mut(
&self,
spec: &'a mut Specification,
) -> Result<&'a mut V, TargetError<Self>>
fn fetch_mut( &self, spec: &'a mut Specification, ) -> Result<&'a mut V, TargetError<Self>>
Fetch a mutable reference to the target from the specification.
Source§impl PartialEq for Transformation
impl PartialEq for Transformation
impl StructuralPartialEq for Transformation
Auto Trait Implementations§
impl Freeze for Transformation
impl RefUnwindSafe for Transformation
impl !Send for Transformation
impl !Sync for Transformation
impl Unpin for Transformation
impl UnwindSafe for Transformation
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