pub enum RpEnumType {
String,
U32,
U64,
I32,
I64,
}Expand description
Model for enum types
Variants§
Implementations§
Source§impl RpEnumType
impl RpEnumType
pub fn is_assignable_from(&self, value: &RpValue) -> bool
Sourcepub fn validate_number(&self, number: &RpNumber) -> Result<()>
pub fn validate_number(&self, number: &RpNumber) -> Result<()>
Validate that the given number doesn’t violate expected numeric bounds.
Trait Implementations§
Source§impl Clone for RpEnumType
impl Clone for RpEnumType
Source§fn clone(&self) -> RpEnumType
fn clone(&self) -> RpEnumType
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 RpEnumType
impl Debug for RpEnumType
Source§impl Display for RpEnumType
impl Display for RpEnumType
Source§impl PartialEq for RpEnumType
impl PartialEq for RpEnumType
Source§impl Serialize for RpEnumType
impl Serialize for RpEnumType
impl Eq for RpEnumType
impl StructuralPartialEq for RpEnumType
Auto Trait Implementations§
impl Freeze for RpEnumType
impl RefUnwindSafe for RpEnumType
impl Send for RpEnumType
impl Sync for RpEnumType
impl Unpin for RpEnumType
impl UnwindSafe for RpEnumType
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