Struct marc::Subfield
[−]
[src]
pub struct Subfield<'a> { // some fields omitted }
Borrowed version of a subfield of a data field.
Methods
impl<'a> Subfield<'a>
[src]
fn get_identifier<T: From<Identifier>>(&self) -> T
Returns identifier of a subfield.
fn get_data<T: FromFieldData + ?Sized>(&self) -> Option<&T>
Returns data of a subfield.
fn get_tag<T: From<&'a Tag>>(&'a self) -> T
Returns tag of a field self
belongs to.
Trait Implementations
impl<'a> Clone for Subfield<'a>
[src]
fn clone(&self) -> Subfield<'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 Subfield<'a>
[src]
fn eq(&self, __arg_0: &Subfield<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Subfield<'a>) -> bool
This method tests for !=
.