pub struct IndexerDeclaration {
pub attributes: Vec<Attribute>,
pub type: String,
pub parameters: Vec<Parameter>,
pub get_accessor: Option<Accessor>,
pub set_accessor: Option<Accessor>,
pub span: Range<usize>,
}Expand description
Indexer declaration.
Represents a C# indexer (this[...]), which allows objects to be indexed
like arrays.
Fields§
§attributes: Vec<Attribute>Attributes.
type: StringIndexer type.
parameters: Vec<Parameter>Parameters.
get_accessor: Option<Accessor>Get accessor.
set_accessor: Option<Accessor>Set accessor.
span: Range<usize>Source location.
Trait Implementations§
Source§impl Clone for IndexerDeclaration
impl Clone for IndexerDeclaration
Source§fn clone(&self) -> IndexerDeclaration
fn clone(&self) -> IndexerDeclaration
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 IndexerDeclaration
impl Debug for IndexerDeclaration
Source§impl<'de> Deserialize<'de> for IndexerDeclaration
impl<'de> Deserialize<'de> for IndexerDeclaration
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 IndexerDeclaration
impl PartialEq for IndexerDeclaration
Source§impl Serialize for IndexerDeclaration
impl Serialize for IndexerDeclaration
impl StructuralPartialEq for IndexerDeclaration
Auto Trait Implementations§
impl Freeze for IndexerDeclaration
impl RefUnwindSafe for IndexerDeclaration
impl Send for IndexerDeclaration
impl Sync for IndexerDeclaration
impl Unpin for IndexerDeclaration
impl UnsafeUnpin for IndexerDeclaration
impl UnwindSafe for IndexerDeclaration
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