[−][src]Trait rustfst::semirings::SerializableSemiring
Required methods
fn weight_type() -> String
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
fn parse_text(i: &str) -> IResult<&str, Self>
Provided methods
fn write_text<F: Write>(&self, file: &mut F) -> Result<()>
Implementors
impl SerializableSemiring for LogWeight
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl SerializableSemiring for ProbabilityWeight
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl SerializableSemiring for StringWeightLeft
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl SerializableSemiring for StringWeightRestrict
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl SerializableSemiring for StringWeightRight
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl SerializableSemiring for TropicalWeight
[src]
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl<W1, W2> SerializableSemiring for ProductWeight<W1, W2> where
W1: SerializableSemiring,
W2: SerializableSemiring,
[src]
W1: SerializableSemiring,
W2: SerializableSemiring,
fn weight_type() -> String
[src]
fn parse_binary(i: &[u8]) -> IResult<&[u8], Self>
[src]
fn write_binary<F: Write>(&self, file: &mut F) -> Result<()>
[src]
fn parse_text(i: &str) -> IResult<&str, Self>
[src]
impl<W, O> SerializableSemiring for UnionWeight<W, O> where
W: SerializableSemiring,
O: UnionWeightOption<W>,
[src]
W: SerializableSemiring,
O: UnionWeightOption<W>,