Skip to main content

TryToInline

Trait TryToInline 

Source
pub trait TryToInline<S: InlineEncoding> {
    type Error;

    // Required method
    fn try_to_inline(self) -> Result<Inline<S>, Self::Error>;
}
Expand description

Fallible variant of value conversion — T → Result<Inline<S>, Error>.

Kept as a standalone trait (not folded into IntoEncoded) because the error type is part of the per-source/per-target contract. Used for parses that can fail (e.g. &str → Hash<Blake3> via hex-decoding).

Required Associated Types§

Source

type Error

The error type returned when the conversion fails.

Required Methods§

Source

fn try_to_inline(self) -> Result<Inline<S>, Self::Error>

Convert the Rust type to a Inline with a specific schema type.

Implementations on Foreign Types§

Source§

impl TryToInline<Boolean> for &bool

Source§

impl TryToInline<Boolean> for bool

Source§

impl TryToInline<F64> for &Number

Source§

impl TryToInline<F64> for Number

Source§

impl TryToInline<F256LE> for &Number

Source§

impl TryToInline<F256LE> for Number

Source§

impl TryToInline<GenId> for &str

Source§

impl TryToInline<GenId> for &Uuid

Source§

impl TryToInline<GenId> for Uuid

Source§

impl TryToInline<RangeInclusiveU128> for RangeInclusive<u128>

Source§

impl TryToInline<RangeU128> for Range<u128>

Source§

impl TryToInline<ShortString> for &str

Source§

impl TryToInline<ShortString> for String

Source§

impl TryToInline<NsTAIInterval> for (Epoch, Epoch)

Source§

impl<H: HashProtocol> TryToInline<Hash<H>> for &str

Source§

impl<H: HashProtocol> TryToInline<Hash<H>> for String

Implementors§