Struct PositiveI32
pub struct PositiveI32(/* private fields */);Implementations§
§impl PositiveI32
impl PositiveI32
pub fn new(value: i32) -> PositiveI32
pub fn new(value: i32) -> PositiveI32
Creates a new PositiveI32. Panics if value <= 0.
pub fn get(self) -> i32
Trait Implementations§
§impl Clone for PositiveI32
impl Clone for PositiveI32
§fn clone(&self) -> PositiveI32
fn clone(&self) -> PositiveI32
Returns a copy 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 more§impl Debug for PositiveI32
impl Debug for PositiveI32
§impl<'de> Deserialize<'de> for PositiveI32
impl<'de> Deserialize<'de> for PositiveI32
§fn deserialize<D>(
deserializer: D,
) -> Result<PositiveI32, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<PositiveI32, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for PositiveI32
impl Display for PositiveI32
§impl Hash for PositiveI32
impl Hash for PositiveI32
§impl JsonSchema for PositiveI32
impl JsonSchema for PositiveI32
§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read more§impl Ord for PositiveI32
impl Ord for PositiveI32
§impl PartialEq for PositiveI32
impl PartialEq for PositiveI32
§impl PartialOrd for PositiveI32
impl PartialOrd for PositiveI32
§impl Serialize for PositiveI32
impl Serialize for PositiveI32
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PositiveI32
impl Eq for PositiveI32
impl StructuralPartialEq for PositiveI32
Auto Trait Implementations§
impl Freeze for PositiveI32
impl RefUnwindSafe for PositiveI32
impl Send for PositiveI32
impl Sync for PositiveI32
impl Unpin for PositiveI32
impl UnwindSafe for PositiveI32
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.