Struct general_sam::sam::GeneralSAM

source ·
pub struct GeneralSAM<T: Ord + Clone> { /* private fields */ }

Implementations§

source§

impl GeneralSAM<u8>

source

pub fn construct_from_bytes<S: AsRef<[u8]>>(s: S) -> Self

source§

impl GeneralSAM<u32>

source

pub fn construct_from_utf32<S: AsRef<[u32]>>(s: S) -> Self

source§

impl GeneralSAM<char>

source

pub fn construct_from_chars<S: Iterator<Item = char>>(s: S) -> Self

source§

impl<T: Ord + Clone> GeneralSAM<T>

source

pub fn num_of_nodes(&self) -> usize

source

pub fn get_root_node(&self) -> &GeneralSAMNode<T>

source

pub fn get_node(&self, node_id: GeneralSAMNodeID) -> Option<&GeneralSAMNode<T>>

source

pub fn get_root_state(&self) -> GeneralSAMState<'_, T>

source

pub fn get_state(&self, node_id: GeneralSAMNodeID) -> GeneralSAMState<'_, T>

source

pub fn get_topo_and_suf_len_sorted_node_ids(&self) -> &Vec<GeneralSAMNodeID>

Returns topological sorted, maximum suffix length sorted and suffix parent depth sorted node id sequence, which is generated by topological sorting with a queue.

source

pub fn construct_from_trie<TN: TrieNodeAlike>(node: TN) -> Selfwhere TN::InnerType: Into<T>,

Trait Implementations§

source§

impl<T: Clone + Ord + Clone> Clone for GeneralSAM<T>

source§

fn clone(&self) -> GeneralSAM<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug + Ord + Clone> Debug for GeneralSAM<T>

source§

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

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

impl<T: Ord + Clone> Default for GeneralSAM<T>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for GeneralSAM<T>where T: RefUnwindSafe,

§

impl<T> Send for GeneralSAM<T>where T: Send,

§

impl<T> Sync for GeneralSAM<T>where T: Sync,

§

impl<T> Unpin for GeneralSAM<T>

§

impl<T> UnwindSafe for GeneralSAM<T>where T: RefUnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.