Struct sdml_core::model::constraints::FunctionSignature
source · pub struct FunctionSignature { /* private fields */ }
Implementations§
source§impl FunctionSignature
impl FunctionSignature
pub fn new( parameters: Vec<FunctionParameter>, target_type: FunctionType ) -> Self
pub fn has_parameters(&self) -> bool
pub fn parameters_len(&self) -> usize
pub fn parameters(&self) -> impl Iterator<Item = &FunctionParameter>
pub fn parameters_mut(&mut self) -> impl Iterator<Item = &mut FunctionParameter>
pub fn add_to_parameters<I>(&mut self, value: I)where
I: Into<FunctionParameter>,
pub fn extend_parameters<I>(&mut self, extension: I)where
I: IntoIterator<Item = FunctionParameter>,
pub const fn target_type(&self) -> &FunctionType
pub fn set_target_type(&mut self, target_type: FunctionType)
Trait Implementations§
source§impl Clone for FunctionSignature
impl Clone for FunctionSignature
source§fn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
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 FunctionSignature
impl Debug for FunctionSignature
source§impl<'de> Deserialize<'de> for FunctionSignature
impl<'de> Deserialize<'de> for FunctionSignature
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 HasSourceSpan for FunctionSignature
impl HasSourceSpan for FunctionSignature
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 FunctionSignature
impl Send for FunctionSignature
impl Sync for FunctionSignature
impl Unpin for FunctionSignature
impl UnwindSafe for FunctionSignature
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