pub struct Record<A: Alphabet> { /* private fields */ }
Expand description
A MEME file record.
Implementations§
Source§impl<A: Alphabet> Record<A>
impl<A: Alphabet> Record<A>
Sourcepub fn background(&self) -> Option<&Background<A>>
pub fn background(&self) -> Option<&Background<A>>
Get the background of the record, if any declared in the file.
Sourcepub fn matrix(&self) -> &FrequencyMatrix<A>
pub fn matrix(&self) -> &FrequencyMatrix<A>
Get the frequency matrix of the record.
Sourcepub fn into_matrix(self) -> FrequencyMatrix<A>
pub fn into_matrix(self) -> FrequencyMatrix<A>
Take the frequency matrix of the record.
Trait Implementations§
Source§impl<A: Alphabet> AsRef<FrequencyMatrix<A>> for Record<A>
impl<A: Alphabet> AsRef<FrequencyMatrix<A>> for Record<A>
Source§fn as_ref(&self) -> &FrequencyMatrix<A>
fn as_ref(&self) -> &FrequencyMatrix<A>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<A> Freeze for Record<A>
impl<A> RefUnwindSafe for Record<A>
impl<A> Send for Record<A>where
A: Send,
impl<A> Sync for Record<A>where
A: Sync,
impl<A> Unpin for Record<A>
impl<A> UnwindSafe for Record<A>
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