Struct agnes::field::RFieldIdent
[−]
[src]
pub struct RFieldIdent { pub ident: FieldIdent, pub rename: Option<String>, }
Possibly-renamed field identifier
Fields
ident: FieldIdent
Original field identifier
rename: Option<String>
Renamed name (if exists)
Methods
impl RFieldIdent
[src]
pub fn to_string(&self) -> String
[src]
Produce a string representation of this RFieldIdent
. Uses the renamed name (if exists),
of the result of to_string
on the underlying FieldIdent
.
pub fn to_renamed_field_ident(&self) -> FieldIdent
[src]
Produce a new FieldIdent
using the rename
value of this RFieldIdent
(if exists), or
simply a clone of the underlying FieldIdent
.
Trait Implementations
impl Debug for RFieldIdent
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for RFieldIdent
[src]
fn clone(&self) -> RFieldIdent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for RFieldIdent
[src]
fn eq(&self, __arg_0: &RFieldIdent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RFieldIdent) -> bool
[src]
This method tests for !=
.