#[non_exhaustive]pub enum ReturnShape {
Bool,
String,
Float,
Int,
Contextual,
}Expand description
Return shape produced by a standard-library rule.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bool
Boolean result.
String
String result.
Float
Floating-point result.
Int
Integer result.
Contextual
Type is supplied by call-site context.
Trait Implementations§
Source§impl Clone for ReturnShape
impl Clone for ReturnShape
Source§fn clone(&self) -> ReturnShape
fn clone(&self) -> ReturnShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReturnShape
Source§impl Debug for ReturnShape
impl Debug for ReturnShape
impl Eq for ReturnShape
Source§impl PartialEq for ReturnShape
impl PartialEq for ReturnShape
Source§fn eq(&self, other: &ReturnShape) -> bool
fn eq(&self, other: &ReturnShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReturnShape
Auto Trait Implementations§
impl Freeze for ReturnShape
impl RefUnwindSafe for ReturnShape
impl Send for ReturnShape
impl Sync for ReturnShape
impl Unpin for ReturnShape
impl UnsafeUnpin for ReturnShape
impl UnwindSafe for ReturnShape
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