Struct xcell_types::IntegerDescription
source · pub struct IntegerDescription {
pub kind: IntegerKind,
pub min: BigInt,
pub max: BigInt,
pub default: BigInt,
}Fields
kind: IntegerKindmin: BigIntmax: BigIntdefault: BigIntImplementations
sourceimpl IntegerDescription
impl IntegerDescription
pub fn parse_cell(&self, cell: &DataType) -> XResult<XCellValue>
pub fn parse_value(&self, cell: &DataType) -> XResult<BigInt>
Methods from Deref<Target = IntegerKind>
Trait Implementations
sourceimpl Clone for IntegerDescription
impl Clone for IntegerDescription
sourcefn clone(&self) -> IntegerDescription
fn clone(&self) -> IntegerDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for IntegerDescription
impl Debug for IntegerDescription
sourceimpl Default for IntegerDescription
impl Default for IntegerDescription
sourcefn default() -> IntegerDescription
fn default() -> IntegerDescription
Returns the “default value” for a type. Read more
sourceimpl Deref for IntegerDescription
impl Deref for IntegerDescription
type Target = IntegerKind
type Target = IntegerKind
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for IntegerDescription
impl<'de> Deserialize<'de> for IntegerDescription
sourcefn 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
sourceimpl Serialize for IntegerDescription
impl Serialize for IntegerDescription
Auto Trait Implementations
impl RefUnwindSafe for IntegerDescription
impl Send for IntegerDescription
impl Sync for IntegerDescription
impl Unpin for IntegerDescription
impl UnwindSafe for IntegerDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more