Struct sdml_core::model::constraints::FunctionDef
source · pub struct FunctionDef { /* private fields */ }
Implementations§
source§impl FunctionDef
impl FunctionDef
pub const fn new(signature: FunctionSignature, body: ConstraintSentence) -> Self
pub const fn signature(&self) -> &FunctionSignature
pub fn set_signature(&mut self, signature: FunctionSignature)
Trait Implementations§
source§impl Clone for FunctionDef
impl Clone for FunctionDef
source§fn clone(&self) -> FunctionDef
fn clone(&self) -> FunctionDef
Returns a copy 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 FunctionDef
impl Debug for FunctionDef
source§impl<'de> Deserialize<'de> for FunctionDef
impl<'de> Deserialize<'de> for FunctionDef
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 From<FunctionDef> for EnvironmentDefBody
impl From<FunctionDef> for EnvironmentDefBody
source§fn from(v: FunctionDef) -> Self
fn from(v: FunctionDef) -> Self
Converts to this type from the input type.
source§impl HasBody<ConstraintSentence> for FunctionDef
impl HasBody<ConstraintSentence> for FunctionDef
fn body(&self) -> &ConstraintSentence
fn set_body(&mut self, body: ConstraintSentence)
source§impl HasSourceSpan for FunctionDef
impl HasSourceSpan for FunctionDef
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for FunctionDef
impl Send for FunctionDef
impl Sync for FunctionDef
impl Unpin for FunctionDef
impl UnwindSafe for FunctionDef
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