pub struct ExpectInteger { /* private fields */ }Implementations§
Source§impl ExpectInteger
impl ExpectInteger
pub fn is_in_range<R>(self, range: R) -> Selfwhere
R: RangeBounds<i64>,
pub fn is_zero(self) -> Self
pub fn is_not_zero(self) -> Self
pub fn is_positive(self) -> Self
pub fn is_negative(self) -> Self
Trait Implementations§
Source§impl Clone for ExpectInteger
impl Clone for ExpectInteger
Source§fn clone(&self) -> ExpectInteger
fn clone(&self) -> ExpectInteger
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 ExpectInteger
impl Debug for ExpectInteger
Source§impl Default for ExpectInteger
impl Default for ExpectInteger
Source§fn default() -> ExpectInteger
fn default() -> ExpectInteger
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExpectInteger
impl<'de> Deserialize<'de> for ExpectInteger
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ExpectOp for ExpectInteger
impl ExpectOp for ExpectInteger
fn on_i64(&self, context: &mut Context<'_>, received: i64) -> ExpectOpResult<()>
fn on_u64(&self, context: &mut Context<'_>, received: u64) -> ExpectOpResult<()>
fn supported_types(&self) -> &'static [JsonType]
fn on_any( &self, context: &mut Context<'_>, received: &Value, ) -> ExpectOpResult<()>
fn on_null(&self, context: &mut Context<'_>) -> ExpectOpResult<()>
fn on_f64(&self, context: &mut Context<'_>, received: f64) -> ExpectOpResult<()>
fn on_boolean( &self, context: &mut Context<'_>, received: bool, ) -> ExpectOpResult<()>
fn on_string( &self, context: &mut Context<'_>, received: &str, ) -> ExpectOpResult<()>
fn on_array( &self, context: &mut Context<'_>, received: &[Value], ) -> ExpectOpResult<()>
fn on_object( &self, context: &mut Context<'_>, received: &Map<String, Value>, ) -> ExpectOpResult<()>
Source§impl ExpectOpExt for ExpectInteger
impl ExpectOpExt for ExpectInteger
Source§impl From<ExpectInteger> for Value
impl From<ExpectInteger> for Value
Source§fn from(value: ExpectInteger) -> Self
fn from(value: ExpectInteger) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExpectInteger
impl PartialEq for ExpectInteger
Source§impl Serialize for ExpectInteger
impl Serialize for ExpectInteger
impl StructuralPartialEq for ExpectInteger
Auto Trait Implementations§
impl Freeze for ExpectInteger
impl RefUnwindSafe for ExpectInteger
impl Send for ExpectInteger
impl Sync for ExpectInteger
impl Unpin for ExpectInteger
impl UnwindSafe for ExpectInteger
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