pub struct EventDeclaration {
pub name: String,
pub attributes: Vec<Attribute>,
pub type: String,
pub modifiers: Vec<String>,
pub span: Range<usize>,
}Expand description
Event declaration.
Represents a C# event member, which provides a way for a class to notify
other classes when something of interest occurs.
Fields§
§name: StringEvent name.
attributes: Vec<Attribute>Attributes.
type: StringEvent type.
modifiers: Vec<String>Modifiers.
span: Range<usize>Source location.
Trait Implementations§
Source§impl Clone for EventDeclaration
impl Clone for EventDeclaration
Source§fn clone(&self) -> EventDeclaration
fn clone(&self) -> EventDeclaration
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 EventDeclaration
impl Debug for EventDeclaration
Source§impl<'de> Deserialize<'de> for EventDeclaration
impl<'de> Deserialize<'de> for EventDeclaration
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 EventDeclaration
impl PartialEq for EventDeclaration
Source§impl Serialize for EventDeclaration
impl Serialize for EventDeclaration
impl StructuralPartialEq for EventDeclaration
Auto Trait Implementations§
impl Freeze for EventDeclaration
impl RefUnwindSafe for EventDeclaration
impl Send for EventDeclaration
impl Sync for EventDeclaration
impl Unpin for EventDeclaration
impl UnsafeUnpin for EventDeclaration
impl UnwindSafe for EventDeclaration
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