pub struct DelegateDeclaration {
pub name: String,
pub attributes: Vec<Attribute>,
pub modifiers: Vec<String>,
pub return_type: String,
pub type_parameters: Vec<TypeParameter>,
pub parameters: Vec<Parameter>,
pub span: Range<usize>,
}Expand description
Delegate declaration.
Represents a delegate definition in C#. Delegates are reference types
that represent a method with a particular parameter list and return type.
Fields§
§name: StringThe name of the delegate.
attributes: Vec<Attribute>Attributes applied to the delegate.
modifiers: Vec<String>Modifiers like public, internal.
return_type: StringThe return type of the method signature.
type_parameters: Vec<TypeParameter>Generic type parameters.
parameters: Vec<Parameter>The parameters of the delegate method signature.
span: Range<usize>Source location of the delegate declaration.
Trait Implementations§
Source§impl Clone for DelegateDeclaration
impl Clone for DelegateDeclaration
Source§fn clone(&self) -> DelegateDeclaration
fn clone(&self) -> DelegateDeclaration
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 DelegateDeclaration
impl Debug for DelegateDeclaration
Source§impl<'de> Deserialize<'de> for DelegateDeclaration
impl<'de> Deserialize<'de> for DelegateDeclaration
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 DelegateDeclaration
impl PartialEq for DelegateDeclaration
Source§impl Serialize for DelegateDeclaration
impl Serialize for DelegateDeclaration
impl StructuralPartialEq for DelegateDeclaration
Auto Trait Implementations§
impl Freeze for DelegateDeclaration
impl RefUnwindSafe for DelegateDeclaration
impl Send for DelegateDeclaration
impl Sync for DelegateDeclaration
impl Unpin for DelegateDeclaration
impl UnsafeUnpin for DelegateDeclaration
impl UnwindSafe for DelegateDeclaration
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