[−][src]Struct ssf::ir::PrimitiveCase
Methods
impl PrimitiveCase
[src]
pub fn new(
argument: impl Into<Expression>,
alternatives: Vec<PrimitiveAlternative>,
default_alternative: Option<DefaultAlternative>
) -> Self
[src]
argument: impl Into<Expression>,
alternatives: Vec<PrimitiveAlternative>,
default_alternative: Option<DefaultAlternative>
) -> Self
pub fn argument(&self) -> &Expression
[src]
pub fn alternatives(&self) -> &[PrimitiveAlternative]
[src]
pub fn default_alternative(&self) -> Option<&DefaultAlternative>
[src]
Trait Implementations
impl Clone for PrimitiveCase
[src]
fn clone(&self) -> PrimitiveCase
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PrimitiveCase
[src]
impl From<PrimitiveCase> for Case
[src]
fn from(primitive_case: PrimitiveCase) -> Self
[src]
impl From<PrimitiveCase> for Expression
[src]
fn from(primitive_case: PrimitiveCase) -> Self
[src]
impl PartialEq<PrimitiveCase> for PrimitiveCase
[src]
fn eq(&self, other: &PrimitiveCase) -> bool
[src]
fn ne(&self, other: &PrimitiveCase) -> bool
[src]
impl StructuralPartialEq for PrimitiveCase
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PrimitiveCase
impl !Send for PrimitiveCase
impl !Sync for PrimitiveCase
impl Unpin for PrimitiveCase
impl !UnwindSafe for PrimitiveCase
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,