pub struct TextValue {
pub text: String,
pub lang: Option<String>,
}Expand description
a text value with an optional language tag
Fields§
§text: Stringtext itself
lang: Option<String>BCP 47 language tag
Trait Implementations§
Source§impl<S> Decode<S> for TextValuewhere
S: ErrorSpan,
impl<S> Decode<S> for TextValuewhere
S: ErrorSpan,
Source§fn decode_node(
node: &SpannedNode<S>,
ctx: &mut Context<S>,
) -> Result<Self, DecodeError<S>>
fn decode_node( node: &SpannedNode<S>, ctx: &mut Context<S>, ) -> Result<Self, DecodeError<S>>
Decodes the node from the ast
impl Eq for TextValue
impl StructuralPartialEq for TextValue
Auto Trait Implementations§
impl Freeze for TextValue
impl RefUnwindSafe for TextValue
impl Send for TextValue
impl Sync for TextValue
impl Unpin for TextValue
impl UnwindSafe for TextValue
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