Struct general_sam::sam::State
source · pub struct State<'s, T: Ord + Clone> {
pub sam: &'s GeneralSAM<T>,
pub node_id: usize,
}Fields§
§sam: &'s GeneralSAM<T>§node_id: usizeImplementations§
source§impl<'s, T: Ord + Clone> State<'s, T>
impl<'s, T: Ord + Clone> State<'s, T>
pub fn is_nil(&self) -> bool
pub fn is_root(&self) -> bool
pub fn is_accepting(&self) -> bool
pub fn get_node(&self) -> Option<&Node<T>>
pub fn goto_suffix_parent(&mut self)
pub fn goto(&mut self, t: &T)
pub fn feed_ref<Seq: IntoIterator<Item = &'s T>>(self, seq: Seq) -> Self
pub fn feed_ref_iter<Iter: Iterator<Item = &'s T>>(self, iter: Iter) -> Self
pub fn feed<Seq: IntoIterator<Item = T>>(self, seq: Seq) -> Self
pub fn feed_iter<Iter: Iterator<Item = T>>(self, iter: Iter) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'s, T> RefUnwindSafe for State<'s, T>where T: RefUnwindSafe,
impl<'s, T> Send for State<'s, T>where T: Sync,
impl<'s, T> Sync for State<'s, T>where T: Sync,
impl<'s, T> Unpin for State<'s, T>
impl<'s, T> UnwindSafe for State<'s, T>where T: RefUnwindSafe,
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