SliceSubGenome

Struct SliceSubGenome 

Source
pub struct SliceSubGenome<AlphabetType: Alphabet> { /* private fields */ }
Expand description

The subsequence of a genome sequence stored as slice of plain characters.

Trait Implementations§

Source§

impl<AlphabetType: Alphabet> Borrow<SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

fn borrow(&self) -> &SliceSubGenome<AlphabetType>

Immutably borrows from an owned value. Read more
Source§

impl<AlphabetType: Debug + Alphabet> Debug for SliceSubGenome<AlphabetType>
where AlphabetType::CharacterType: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<AlphabetType: Alphabet> EditableGenomeSequence<AlphabetType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

fn into_iter_u8( self, ) -> Map<<Self as IntoIterator>::IntoIter, fn(<AlphabetType as Alphabet>::CharacterType) -> u8>

Converts this genome sequence into an iterator over ASCII characters.
Source§

fn extend_from_iter_u8<IteratorType: IntoIterator<Item = u8>>( &mut self, iter: IteratorType, ) -> Result<(), AlphabetError>

Extends this genome from a sequence of ASCII characters.
Source§

fn extend_from_slice_u8(&mut self, slice: &[u8]) -> Result<(), AlphabetError>

Extends this genome from a sequence of ASCII characters.
Source§

impl<AlphabetType: Alphabet> EditableSequence<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

fn split_off(&mut self, at: usize) -> Self

Source§

fn set(&mut self, index: usize, item: AlphabetType::CharacterType)

Replace the item at the given index with the given item.
Source§

fn reserve(&mut self, additional: usize)

Reserve memory for at least additional items.
Source§

fn resize(&mut self, new_len: usize, value: AlphabetType::CharacterType)
where AlphabetType::CharacterType: Clone,

Resize to contain the given number of items. Empty spaces are filled with the given item.
Source§

fn resize_with( &mut self, new_len: usize, generator: impl FnMut() -> AlphabetType::CharacterType, )

Resize to contain the given number of items. Empty spaces are filled with the given items generated by generator.
Source§

fn push(&mut self, item: AlphabetType::CharacterType)

Insert the given item at the end of the sequence.
Source§

fn splice( &mut self, range: Range<usize>, replace_with: impl IntoIterator<Item = AlphabetType::CharacterType>, )

Source§

fn extend_into<ExtensionItem, ExtensionSource>( &mut self, extension: ExtensionSource, )
where ExtensionItem: Into<Item>, ExtensionSource: IntoIterator<Item = ExtensionItem>,

Extend this sequence from a sequence of compatible items.
Source§

fn delete(&mut self, range: Range<usize>)
where Item: Clone,

Delete the items in the specified range.
Source§

fn insert_repeat(&mut self, source_range: Range<usize>, target: usize)
where Item: Clone,

Insert a repeat at target that consists of the cloned items in source_range.
Source§

impl<const K: usize, AlphabetType: Alphabet> GenomeSequence<AlphabetType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

fn as_genome_subsequence(&self) -> &SliceSubGenome<AlphabetType>

Get a reference to this genome as its subsequence type.
Source§

fn is_valid(&self) -> bool

Returns true if this genome is valid, i.e. it contains no invalid characters.
Source§

fn clone_as_vec(&self) -> Vec<u8>

Copies this genome string into a Vec.
Source§

fn as_string(&self) -> String

Returns the genome as nucleotide string.
Source§

fn reverse_complement_iter( &self, ) -> ReverseComplementIterator<Self::Iterator<'_>, AlphabetType>

Returns an iterator over the reverse complement of this genome. Panics if the iterator his an invalid character (see not valid).
Source§

fn cloned_k_mer_iter<const K: usize, KmerType: OwnedKmer<K, AlphabetType, GenomeSubsequence>>( &self, ) -> OwnedKmerIterator<'_, Self, KmerType>

Returns an iterator over the k-mers of this genome. The k-mers are cloned from this genome.
Source§

fn convert_with_reverse_complement<ReverseComplementSequence: OwnedGenomeSequence<AlphabetType, ReverseComplementSubsequence>, ReverseComplementSubsequence: GenomeSequence<AlphabetType, ReverseComplementSubsequence> + ?Sized>( &self, ) -> ReverseComplementSequence

Returns an owned copy of the reverse complement of this genome. Panics if this genome is not valid.
Source§

fn convert<ResultSequence: OwnedGenomeSequence<AlphabetType, ResultSubsequence>, ResultSubsequence: GenomeSequence<AlphabetType, ResultSubsequence> + ?Sized>( &self, ) -> ResultSequence

Returns an owned copy of this genome.
Source§

fn is_canonical(&self) -> bool

Returns true if the genome is canonical. A canonical genome is lexicographically smaller or equal to its reverse complement.
Source§

fn is_self_complemental(&self) -> bool

Returns true if the genome is self-complemental. A self-complemental genome is equivalent to its reverse complement.
Source§

impl<AlphabetType: Alphabet> GenomeSequence<AlphabetType, SliceSubGenome<AlphabetType>> for SliceSubGenome<AlphabetType>

Source§

fn is_valid(&self) -> bool

Returns true if this genome is valid, i.e. it contains no invalid characters.
Source§

fn clone_as_vec(&self) -> Vec<u8>

Copies this genome string into a Vec.
Source§

fn as_genome_subsequence(&self) -> &GenomeSubsequence

Get a reference to this genome as its subsequence type.
Source§

fn as_string(&self) -> String

Returns the genome as nucleotide string.
Source§

fn reverse_complement_iter( &self, ) -> ReverseComplementIterator<Self::Iterator<'_>, AlphabetType>

Returns an iterator over the reverse complement of this genome. Panics if the iterator his an invalid character (see not valid).
Source§

fn cloned_k_mer_iter<const K: usize, KmerType: OwnedKmer<K, AlphabetType, GenomeSubsequence>>( &self, ) -> OwnedKmerIterator<'_, Self, KmerType>

Returns an iterator over the k-mers of this genome. The k-mers are cloned from this genome.
Source§

fn convert_with_reverse_complement<ReverseComplementSequence: OwnedGenomeSequence<AlphabetType, ReverseComplementSubsequence>, ReverseComplementSubsequence: GenomeSequence<AlphabetType, ReverseComplementSubsequence> + ?Sized>( &self, ) -> ReverseComplementSequence

Returns an owned copy of the reverse complement of this genome. Panics if this genome is not valid.
Source§

fn convert<ResultSequence: OwnedGenomeSequence<AlphabetType, ResultSubsequence>, ResultSubsequence: GenomeSequence<AlphabetType, ResultSubsequence> + ?Sized>( &self, ) -> ResultSequence

Returns an owned copy of this genome.
Source§

fn is_canonical(&self) -> bool

Returns true if the genome is canonical. A canonical genome is lexicographically smaller or equal to its reverse complement.
Source§

fn is_self_complemental(&self) -> bool

Returns true if the genome is self-complemental. A self-complemental genome is equivalent to its reverse complement.
Source§

impl<AlphabetType: Alphabet> GenomeSequence<AlphabetType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

fn as_genome_subsequence(&self) -> &SliceSubGenome<AlphabetType>

Get a reference to this genome as its subsequence type.
Source§

fn is_valid(&self) -> bool

Returns true if this genome is valid, i.e. it contains no invalid characters.
Source§

fn clone_as_vec(&self) -> Vec<u8>

Copies this genome string into a Vec.
Source§

fn as_string(&self) -> String

Returns the genome as nucleotide string.
Source§

fn reverse_complement_iter( &self, ) -> ReverseComplementIterator<Self::Iterator<'_>, AlphabetType>

Returns an iterator over the reverse complement of this genome. Panics if the iterator his an invalid character (see not valid).
Source§

fn cloned_k_mer_iter<const K: usize, KmerType: OwnedKmer<K, AlphabetType, GenomeSubsequence>>( &self, ) -> OwnedKmerIterator<'_, Self, KmerType>

Returns an iterator over the k-mers of this genome. The k-mers are cloned from this genome.
Source§

fn convert_with_reverse_complement<ReverseComplementSequence: OwnedGenomeSequence<AlphabetType, ReverseComplementSubsequence>, ReverseComplementSubsequence: GenomeSequence<AlphabetType, ReverseComplementSubsequence> + ?Sized>( &self, ) -> ReverseComplementSequence

Returns an owned copy of the reverse complement of this genome. Panics if this genome is not valid.
Source§

fn convert<ResultSequence: OwnedGenomeSequence<AlphabetType, ResultSubsequence>, ResultSubsequence: GenomeSequence<AlphabetType, ResultSubsequence> + ?Sized>( &self, ) -> ResultSequence

Returns an owned copy of this genome.
Source§

fn is_canonical(&self) -> bool

Returns true if the genome is canonical. A canonical genome is lexicographically smaller or equal to its reverse complement.
Source§

fn is_self_complemental(&self) -> bool

Returns true if the genome is self-complemental. A self-complemental genome is equivalent to its reverse complement.
Source§

impl<const K: usize, AlphabetType: Alphabet> GenomeSequenceMut<AlphabetType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

fn as_genome_subsequence_mut(&mut self) -> &mut SliceSubGenome<AlphabetType>

Get a reference to this genome as its subsequence type.
Source§

impl<AlphabetType: Alphabet> GenomeSequenceMut<AlphabetType, SliceSubGenome<AlphabetType>> for SliceSubGenome<AlphabetType>

Source§

fn as_genome_subsequence_mut(&mut self) -> &mut GenomeSubsequenceMut

Get a reference to this genome as its subsequence type.
Source§

impl<AlphabetType: Alphabet> GenomeSequenceMut<AlphabetType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

fn as_genome_subsequence_mut(&mut self) -> &mut GenomeSubsequenceMut

Get a reference to this genome as its subsequence type.
Source§

impl<AlphabetType: Hash + Alphabet> Hash for SliceSubGenome<AlphabetType>
where AlphabetType::CharacterType: Hash,

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
Source§

impl<AlphabetType: Alphabet> Index<Range<usize>> for SliceSubGenome<AlphabetType>

Source§

type Output = SliceSubGenome<AlphabetType>

The returned type after indexing.
Source§

fn index(&self, index: Range<usize>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> Index<RangeFrom<usize>> for SliceSubGenome<AlphabetType>

Source§

type Output = SliceSubGenome<AlphabetType>

The returned type after indexing.
Source§

fn index(&self, index: RangeFrom<usize>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> Index<RangeFull> for SliceSubGenome<AlphabetType>

Source§

type Output = SliceSubGenome<AlphabetType>

The returned type after indexing.
Source§

fn index(&self, _index: RangeFull) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> Index<RangeInclusive<usize>> for SliceSubGenome<AlphabetType>

Source§

type Output = SliceSubGenome<AlphabetType>

The returned type after indexing.
Source§

fn index(&self, index: RangeInclusive<usize>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> Index<RangeTo<usize>> for SliceSubGenome<AlphabetType>

Source§

type Output = SliceSubGenome<AlphabetType>

The returned type after indexing.
Source§

fn index(&self, index: RangeTo<usize>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> Index<RangeToInclusive<usize>> for SliceSubGenome<AlphabetType>

Source§

type Output = SliceSubGenome<AlphabetType>

The returned type after indexing.
Source§

fn index(&self, index: RangeToInclusive<usize>) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> Index<usize> for SliceSubGenome<AlphabetType>

Source§

type Output = <AlphabetType as Alphabet>::CharacterType

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> IndexMut<Range<usize>> for SliceSubGenome<AlphabetType>

Source§

fn index_mut(&mut self, index: Range<usize>) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<AlphabetType: Alphabet> IndexMut<usize> for SliceSubGenome<AlphabetType>

Source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl<const K: usize, AlphabetType: Alphabet> Kmer<K, AlphabetType, SliceSubGenome<AlphabetType>> for SliceSubGenome<AlphabetType>

Source§

fn k() -> usize

The length of sequences of this type.
Source§

impl<const K: usize, AlphabetType: Alphabet> OwnedGenomeSequence<AlphabetType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

fn clone_as_reverse_complement(&self) -> Self

Returns the reverse complement of this genome. Panics if this genome is not valid.
Source§

fn from_iter_u8<T: IntoIterator<Item = u8>>( iter: T, ) -> Result<Self, AlphabetError>

Constructs an owned genome sequence from an IntoIter over ASCII characters. If any character is not part of the alphabet, then None is returned.
Source§

fn from_slice_u8(slice: &[u8]) -> Result<Self, AlphabetError>

Constructs an owned genome sequence from a slice of ASCII characters. If any character is not part of the alphabet, then None is returned.
Source§

impl<AlphabetType: Alphabet> OwnedGenomeSequence<AlphabetType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

fn clone_as_reverse_complement(&self) -> Self

Returns the reverse complement of this genome. Panics if this genome is not valid.
Source§

fn from_iter_u8<T: IntoIterator<Item = u8>>( iter: T, ) -> Result<Self, AlphabetError>

Constructs an owned genome sequence from an IntoIter over ASCII characters. If any character is not part of the alphabet, then None is returned.
Source§

fn from_slice_u8(slice: &[u8]) -> Result<Self, AlphabetError>

Constructs an owned genome sequence from a slice of ASCII characters. If any character is not part of the alphabet, then None is returned.
Source§

impl<const K: usize, AlphabetType: Alphabet> OwnedKmer<K, AlphabetType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

fn successor( &self, successor: <AlphabetType as Alphabet>::CharacterType, ) -> Self

Get the successor of this k-mer with the specified character. Read more
Source§

impl<AlphabetType: PartialEq + Alphabet> PartialEq for SliceSubGenome<AlphabetType>
where AlphabetType::CharacterType: PartialEq,

Source§

fn eq(&self, other: &SliceSubGenome<AlphabetType>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<AlphabetType: Alphabet> RefCast for SliceSubGenome<AlphabetType>

Source§

type From = [<AlphabetType as Alphabet>::CharacterType]

Source§

fn ref_cast(_from: &Self::From) -> &Self

Source§

fn ref_cast_mut(_from: &mut Self::From) -> &mut Self

Source§

impl<const K: usize, AlphabetType: Alphabet> Sequence<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

type Iterator<'a> = Iter<'a, <AlphabetType as Alphabet>::CharacterType> where Self: 'a, AlphabetType::CharacterType: 'a

The iterator type of the sequence.
Source§

fn iter(&self) -> Self::Iterator<'_>

Returns an iterator over the sequence.
Source§

fn len(&self) -> usize

Returns the length of the sequence.
Source§

fn prefix(&self, len: usize) -> &Subsequence

Returns a prefix with length len of this sequence. Panics if len >= self.len().
Source§

fn suffix(&self, len: usize) -> &Subsequence

Returns a suffix with length len of this sequence. Panics if len >= self.len().
Source§

fn is_empty(&self) -> bool

Returns true if the sequence is empty.
Source§

fn first(&self) -> Option<&Item>

Returns the first item of the sequence.
Source§

fn last(&self) -> Option<&Item>

Returns the last item of the sequence.
Source§

fn is_proper_subsequence_of(&self, other: &Self) -> bool
where Item: Eq,

Returns true if this is a proper subsequence of the given sequence. Proper means that the sequences are not equal.
Source§

fn contains(&self, item: &Item) -> bool
where Item: Eq,

Returns true if this sequence contains the given item.
Source§

fn forward_merge_iter_assume_mergeable<'a>( &'a self, suffix: &'a Self, ) -> Chain<Self::Iterator<'a>, Skip<Self::Iterator<'a>>>
where Item: Eq,

Returns an iterator over this sequence merged before the given other sequence under the assumption that the sequences can be merged this way. A merge is possible if a non-empty suffix of this sequence equals a non-empty prefix of the other sequence. Read more
Source§

fn backward_merge_iter_assume_mergeable<'a>( &'a self, suffix: &'a Self, ) -> Chain<Self::Iterator<'a>, Skip<Self::Iterator<'a>>>
where Item: Eq,

Returns an iterator over this sequence merged after the given other sequence under the assumption that the sequences can be merged this way. A merge is possible if a non-empty prefix of this sequence equals a non-empty suffix of the other sequence. Read more
Source§

fn to_debug_string(&self) -> String
where Item: Debug,

Converts the sequence to a string using the debug formatting of the items. Read more
Source§

impl<AlphabetType: Alphabet> Sequence<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for SliceSubGenome<AlphabetType>

Source§

type Iterator<'a> = Iter<'a, <AlphabetType as Alphabet>::CharacterType> where AlphabetType: 'a

The iterator type of the sequence.
Source§

fn iter(&self) -> Self::Iterator<'_>

Returns an iterator over the sequence.
Source§

fn len(&self) -> usize

Returns the length of the sequence.
Source§

fn prefix(&self, len: usize) -> &Subsequence

Returns a prefix with length len of this sequence. Panics if len >= self.len().
Source§

fn suffix(&self, len: usize) -> &Subsequence

Returns a suffix with length len of this sequence. Panics if len >= self.len().
Source§

fn is_empty(&self) -> bool

Returns true if the sequence is empty.
Source§

fn first(&self) -> Option<&Item>

Returns the first item of the sequence.
Source§

fn last(&self) -> Option<&Item>

Returns the last item of the sequence.
Source§

fn is_proper_subsequence_of(&self, other: &Self) -> bool
where Item: Eq,

Returns true if this is a proper subsequence of the given sequence. Proper means that the sequences are not equal.
Source§

fn contains(&self, item: &Item) -> bool
where Item: Eq,

Returns true if this sequence contains the given item.
Source§

fn forward_merge_iter_assume_mergeable<'a>( &'a self, suffix: &'a Self, ) -> Chain<Self::Iterator<'a>, Skip<Self::Iterator<'a>>>
where Item: Eq,

Returns an iterator over this sequence merged before the given other sequence under the assumption that the sequences can be merged this way. A merge is possible if a non-empty suffix of this sequence equals a non-empty prefix of the other sequence. Read more
Source§

fn backward_merge_iter_assume_mergeable<'a>( &'a self, suffix: &'a Self, ) -> Chain<Self::Iterator<'a>, Skip<Self::Iterator<'a>>>
where Item: Eq,

Returns an iterator over this sequence merged after the given other sequence under the assumption that the sequences can be merged this way. A merge is possible if a non-empty prefix of this sequence equals a non-empty suffix of the other sequence. Read more
Source§

fn to_debug_string(&self) -> String
where Item: Debug,

Converts the sequence to a string using the debug formatting of the items. Read more
Source§

impl<AlphabetType: Alphabet> Sequence<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

type Iterator<'a> = Iter<'a, <AlphabetType as Alphabet>::CharacterType> where AlphabetType: 'a

The iterator type of the sequence.
Source§

fn iter(&self) -> Self::Iterator<'_>

Returns an iterator over the sequence.
Source§

fn len(&self) -> usize

Returns the length of the sequence.
Source§

fn prefix(&self, len: usize) -> &Subsequence

Returns a prefix with length len of this sequence. Panics if len >= self.len().
Source§

fn suffix(&self, len: usize) -> &Subsequence

Returns a suffix with length len of this sequence. Panics if len >= self.len().
Source§

fn is_empty(&self) -> bool

Returns true if the sequence is empty.
Source§

fn first(&self) -> Option<&Item>

Returns the first item of the sequence.
Source§

fn last(&self) -> Option<&Item>

Returns the last item of the sequence.
Source§

fn is_proper_subsequence_of(&self, other: &Self) -> bool
where Item: Eq,

Returns true if this is a proper subsequence of the given sequence. Proper means that the sequences are not equal.
Source§

fn contains(&self, item: &Item) -> bool
where Item: Eq,

Returns true if this sequence contains the given item.
Source§

fn forward_merge_iter_assume_mergeable<'a>( &'a self, suffix: &'a Self, ) -> Chain<Self::Iterator<'a>, Skip<Self::Iterator<'a>>>
where Item: Eq,

Returns an iterator over this sequence merged before the given other sequence under the assumption that the sequences can be merged this way. A merge is possible if a non-empty suffix of this sequence equals a non-empty prefix of the other sequence. Read more
Source§

fn backward_merge_iter_assume_mergeable<'a>( &'a self, suffix: &'a Self, ) -> Chain<Self::Iterator<'a>, Skip<Self::Iterator<'a>>>
where Item: Eq,

Returns an iterator over this sequence merged after the given other sequence under the assumption that the sequences can be merged this way. A merge is possible if a non-empty prefix of this sequence equals a non-empty suffix of the other sequence. Read more
Source§

fn to_debug_string(&self) -> String
where Item: Debug,

Converts the sequence to a string using the debug formatting of the items. Read more
Source§

impl<const K: usize, AlphabetType: Alphabet> SequenceMut<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

type IteratorMut<'a> = IterMut<'a, <AlphabetType as Alphabet>::CharacterType> where Self: 'a, AlphabetType::CharacterType: 'a

The mutable iterator type of the sequence.
Source§

fn iter_mut(&mut self) -> Self::IteratorMut<'_>

Returns a mutable iterator over the sequence.
Source§

impl<AlphabetType: Alphabet> SequenceMut<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for SliceSubGenome<AlphabetType>

Source§

type IteratorMut<'a> = IterMut<'a, <AlphabetType as Alphabet>::CharacterType> where AlphabetType: 'a

The mutable iterator type of the sequence.
Source§

fn iter_mut(&mut self) -> Self::IteratorMut<'_>

Returns a mutable iterator over the sequence.
Source§

impl<AlphabetType: Alphabet> SequenceMut<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

type IteratorMut<'a> = IterMut<'a, <AlphabetType as Alphabet>::CharacterType> where AlphabetType: 'a

The mutable iterator type of the sequence.
Source§

fn iter_mut(&mut self) -> Self::IteratorMut<'_>

Returns a mutable iterator over the sequence.
Source§

impl<AlphabetType: Alphabet> ToOwned for SliceSubGenome<AlphabetType>

Source§

type Owned = VectorGenome<AlphabetType>

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<AlphabetType: Eq + Alphabet> Eq for SliceSubGenome<AlphabetType>
where AlphabetType::CharacterType: Eq,

Source§

impl<const K: usize, AlphabetType: Alphabet> OwnedSequence<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for ArrayKmer<K, AlphabetType>

Source§

impl<AlphabetType: Alphabet> OwnedSequence<<AlphabetType as Alphabet>::CharacterType, SliceSubGenome<AlphabetType>> for VectorGenome<AlphabetType>

Source§

impl<AlphabetType: Alphabet> StructuralPartialEq for SliceSubGenome<AlphabetType>

Auto Trait Implementations§

§

impl<AlphabetType> Freeze for SliceSubGenome<AlphabetType>
where <AlphabetType as Alphabet>::CharacterType: Freeze,

§

impl<AlphabetType> RefUnwindSafe for SliceSubGenome<AlphabetType>
where <AlphabetType as Alphabet>::CharacterType: RefUnwindSafe,

§

impl<AlphabetType> Send for SliceSubGenome<AlphabetType>
where <AlphabetType as Alphabet>::CharacterType: Send,

§

impl<AlphabetType> !Sized for SliceSubGenome<AlphabetType>

§

impl<AlphabetType> Sync for SliceSubGenome<AlphabetType>
where <AlphabetType as Alphabet>::CharacterType: Sync,

§

impl<AlphabetType> Unpin for SliceSubGenome<AlphabetType>
where <AlphabetType as Alphabet>::CharacterType: Unpin,

§

impl<AlphabetType> UnwindSafe for SliceSubGenome<AlphabetType>
where <AlphabetType as Alphabet>::CharacterType: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.