pub struct TextWithLanguage<S: StringStorage> {
pub content: ValueText<S>,
pub language: Option<S>,
pub x_parameters: Vec<RawParameter<S>>,
pub retained_parameters: Vec<Parameter<S>>,
}Expand description
Text with language parameter only
This is a helper type used by text properties that support ONLY the LANGUAGE parameter (not ALTREP):
- 3.8.3.2:
TzName- Time zone name - 3.8.8.3:
RequestStatus- Request status
ALTREP and other standard parameters are preserved in retained_parameters
for round-trip compatibility.
Fields§
§content: ValueText<S>The actual text content
language: Option<S>Language code (optional)
x_parameters: Vec<RawParameter<S>>X-name parameters (custom experimental parameters)
retained_parameters: Vec<Parameter<S>>Unrecognized / Non-standard parameters (preserved for round-trip)
Implementations§
Source§impl TextWithLanguage<Segments<'_>>
impl TextWithLanguage<Segments<'_>>
Sourcepub fn to_owned(&self) -> TextWithLanguage<String>
pub fn to_owned(&self) -> TextWithLanguage<String>
Convert borrowed TextWithLanguage to owned TextWithLanguage
Trait Implementations§
Source§impl<S: Clone + StringStorage> Clone for TextWithLanguage<S>
impl<S: Clone + StringStorage> Clone for TextWithLanguage<S>
Source§fn clone(&self) -> TextWithLanguage<S>
fn clone(&self) -> TextWithLanguage<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug + StringStorage> Debug for TextWithLanguage<S>
impl<S: Debug + StringStorage> Debug for TextWithLanguage<S>
Source§impl<'src> TryFrom<ParsedProperty<'src>> for TextWithLanguage<Segments<'src>>
impl<'src> TryFrom<ParsedProperty<'src>> for TextWithLanguage<Segments<'src>>
Auto Trait Implementations§
impl<S> Freeze for TextWithLanguage<S>where
S: Freeze,
impl<S> RefUnwindSafe for TextWithLanguage<S>
impl<S> Send for TextWithLanguage<S>
impl<S> Sync for TextWithLanguage<S>
impl<S> Unpin for TextWithLanguage<S>
impl<S> UnwindSafe for TextWithLanguage<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.