Struct syntax::ast::Field
[−]
[src]
pub struct Field { pub ident: SpannedIdent, pub expr: P<Expr>, pub span: Span, pub is_shorthand: bool, pub attrs: ThinVec<Attribute>, }
🔬 This is a nightly-only experimental API. (
rustc_private
)Fields
ident: SpannedIdent
🔬 This is a nightly-only experimental API. (
rustc_private
)expr: P<Expr>
🔬 This is a nightly-only experimental API. (
rustc_private
)span: Span
🔬 This is a nightly-only experimental API. (
rustc_private
)is_shorthand: bool
🔬 This is a nightly-only experimental API. (
rustc_private
)attrs: ThinVec<Attribute>
🔬 This is a nightly-only experimental API. (
rustc_private
)Trait Implementations
impl Clone for Field
[src]
fn clone(&self) -> Field
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Field
[src]
fn eq(&self, __arg_0: &Field) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Field) -> bool
This method tests for !=
.
impl Eq for Field
[src]
impl Encodable for Field
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for Field
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Field, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Hash for Field
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.