Struct marc::Field
[−]
[src]
pub struct Field<'a> { // some fields omitted }
View into a field of a MARC record
Methods
impl<'a> Field<'a>
[src]
fn subfield<'r, Ident: Into<Identifier>>(&'r self, ident: Ident) -> Vec<Subfield<'r>>
Will find all subfields with identifier ident
.
fn subfields(&self) -> Subfields<'a>
Will return iterator over subfields of the field.
fn from_repr(repr: &'a FieldRepr) -> Field<'a>
Will return view into a FieldRepr
.
fn get_tag(&self) -> Tag
Returns tag of the field.
fn get_data<O: FromFieldData + ?Sized>(&self) -> &O
Returns data of the field.
Data will not include field terminator.
Trait Implementations
impl<'a> Debug for Field<'a>
[src]
impl<'a> Clone for Field<'a>
[src]
fn clone(&self) -> Field<'a>
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<'a> PartialEq for Field<'a>
[src]
fn eq(&self, __arg_0: &Field<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Field<'a>) -> bool
This method tests for !=
.