Enum fluent_builder::TryIntoValue [] [src]

pub enum TryIntoValue<TValue, TBuilder> {
    Value(TValue),
    Builder(TBuilder),
}

The result of attempting to pull a value out of a builder.

Calling try_into_value will return TryIntoValue::Value if the builder has been given an explicit value. It will return TryIntoValue::Builder with the original builder if it hasn't been given an explicit value. Calling into_value will never fail, because if a value is missing it's constructed from the default function.

Variants