[][src]Struct rustfst::trs_iter_mut::TrsIterMut

pub struct TrsIterMut<'a, W: Semiring> { /* fields omitted */ }

Implementations

impl<'a, W: Semiring> TrsIterMut<'a, W>[src]

pub fn get(&self, idx: usize) -> Option<&Tr<W>>[src]

pub unsafe fn get_unchecked(&self, idx: usize) -> &Tr<W>[src]

pub fn len(&self) -> usize[src]

pub fn set_ilabel(&mut self, idx: usize, ilabel: Label) -> Result<()>[src]

pub fn set_olabel(&mut self, idx: usize, olabel: Label) -> Result<()>[src]

pub fn set_weight(&mut self, idx: usize, weight: W) -> Result<()>[src]

pub fn set_nextstate(&mut self, idx: usize, nextstate: StateId) -> Result<()>[src]

pub fn set_tr(&mut self, idx: usize, tr: Tr<W>) -> Result<()>[src]

pub unsafe fn set_ilabel_unchecked(&mut self, idx: usize, ilabel: Label)[src]

pub unsafe fn set_olabel_unchecked(&mut self, idx: usize, olabel: Label)[src]

pub unsafe fn set_labels_unchecked(
    &mut self,
    idx: usize,
    ilabel: Label,
    olabel: Label
)
[src]

pub unsafe fn set_weight_unchecked(&mut self, idx: usize, weight: W)[src]

pub unsafe fn set_nextstate_unchecked(&mut self, idx: usize, nextstate: StateId)[src]

pub unsafe fn set_tr_unchecked(&mut self, idx: usize, tr: Tr<W>)[src]

Trait Implementations

impl<'a, W: Semiring> Index<usize> for TrsIterMut<'a, W>[src]

type Output = Tr<W>

The returned type after indexing.

Auto Trait Implementations

impl<'a, W> RefUnwindSafe for TrsIterMut<'a, W> where
    W: RefUnwindSafe

impl<'a, W> Send for TrsIterMut<'a, W> where
    W: Send

impl<'a, W> Sync for TrsIterMut<'a, W>

impl<'a, W> Unpin for TrsIterMut<'a, W>

impl<'a, W> !UnwindSafe for TrsIterMut<'a, W>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.