Primitive

Trait Primitive 

Source
pub trait Primitive:
    DataType
    + Display
    + FromStr {
    type T;

    // Required methods
    fn new<A: Into<Self::T>>(v: A) -> Self;
    fn has_value(&self) -> bool;
    fn value(&self) -> &Option<Self::T>;
    fn set_value(self, v: Self::T) -> Self;
    fn combine(&mut self, other: Self);
}
Expand description

FHIR简单类型的特性 FHIR简单类型是RUST简单数据类型的包装器

Required Associated Types§

Source

type T

Required Methods§

Source

fn new<A: Into<Self::T>>(v: A) -> Self

Source

fn has_value(&self) -> bool

Source

fn value(&self) -> &Option<Self::T>

Source

fn set_value(self, v: Self::T) -> Self

Source

fn combine(&mut self, other: Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§