pub struct Function {
pub arguments: OrderedMap<NameTypePair>,
pub return_type: Option<Namespace>,
pub attributes: Vec<Attribute>,
pub comments: Vec<String>,
}Fields§
§arguments: OrderedMap<NameTypePair>§return_type: Option<Namespace>§attributes: Vec<Attribute>§comments: Vec<String>Implementations§
source§impl Function
impl Function
pub fn new( arguments: OrderedMap<NameTypePair>, return_type: Option<Namespace>, attributes: Vec<Attribute> ) -> Self
pub fn with_comments(self, comments: &mut Vec<String>) -> Self
pub fn arguments(&mut self) -> OrderedMap<NameTypePair>
pub fn return_type(&mut self) -> Option<Namespace>
pub fn attributes(&mut self) -> Vec<Attribute>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Function
impl<'de> Deserialize<'de> for Function
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 Function
impl PartialEq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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