pub struct SeqColCache {
pub collection: SeqCol,
}Expand description
Pre-computed SeqCol cache for a FASTA file.
Written as {fasta_path}.seqcol.json. When present and up-to-date,
the server skips SeqCol construction at startup.
Fields§
§collection: SeqColImplementations§
Source§impl SeqColCache
impl SeqColCache
Sourcepub fn from_summaries(summaries: &[FastaSequenceSummary]) -> Self
pub fn from_summaries(summaries: &[FastaSequenceSummary]) -> Self
Build a SeqColCache from per-sequence summaries.
Trait Implementations§
Source§impl Clone for SeqColCache
impl Clone for SeqColCache
Source§fn clone(&self) -> SeqColCache
fn clone(&self) -> SeqColCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SeqColCache
impl Debug for SeqColCache
Source§impl<'de> Deserialize<'de> for SeqColCache
impl<'de> Deserialize<'de> for SeqColCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SeqColCache
impl Serialize for SeqColCache
Source§impl SidecarCache for SeqColCache
impl SidecarCache for SeqColCache
Source§const EXTENSION: &str = "seqcol.json"
const EXTENSION: &str = "seqcol.json"
The sidecar file extension (e.g.
"refget.json", "seqcol.json").Source§fn cache_path_for<P: AsRef<Path>>(fasta_path: P) -> PathBuf
fn cache_path_for<P: AsRef<Path>>(fasta_path: P) -> PathBuf
Return the standard cache path for a given FASTA file.
Auto Trait Implementations§
impl Freeze for SeqColCache
impl RefUnwindSafe for SeqColCache
impl Send for SeqColCache
impl Sync for SeqColCache
impl Unpin for SeqColCache
impl UnsafeUnpin for SeqColCache
impl UnwindSafe for SeqColCache
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