pub struct SelectExpression { /* private fields */ }Expand description
SelectExpression ::= InlineExpression blank? “->” blank_inline? variant_list
Implementations§
Source§impl SelectExpression
impl SelectExpression
Sourcepub fn new(
inline_expression: InlineExpression,
variant_list: VariantList,
) -> Self
pub fn new( inline_expression: InlineExpression, variant_list: VariantList, ) -> Self
Constructs a new SelectExpression representing a plural/category selection in Fluent.
§Arguments
inline_expression- The selector expression whose value determines which variant is chosen.variant_list- The list of variants, including exactly one default variant.
Sourcepub fn inline_expression(&self) -> &InlineExpression
pub fn inline_expression(&self) -> &InlineExpression
Returns a reference to the selector expression of this select expression.
Trait Implementations§
Source§impl Clone for SelectExpression
impl Clone for SelectExpression
Source§fn clone(&self) -> SelectExpression
fn clone(&self) -> SelectExpression
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 Debug for SelectExpression
impl Debug for SelectExpression
Source§impl Display for SelectExpression
impl Display for SelectExpression
Source§impl PartialEq for SelectExpression
impl PartialEq for SelectExpression
impl StructuralPartialEq for SelectExpression
Auto Trait Implementations§
impl Freeze for SelectExpression
impl RefUnwindSafe for SelectExpression
impl Send for SelectExpression
impl Sync for SelectExpression
impl Unpin for SelectExpression
impl UnsafeUnpin for SelectExpression
impl UnwindSafe for SelectExpression
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.