#[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
impl 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
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