Enum concordium_std::schema::Fields [−][src]
Expand description
Schema for the fields of a struct or some enum variant.
Variants
Expand description
Named fields, e.g., struct Foo {x: u64, y: u32}
.
Expand description
Unnamed fields, e.g., struct Foo(u64, u32)
Expand description
No fields. Note that this is distinct from an empty set of named or
unnamed fields. That is, in Rust there is a (albeit trivial) difference
between struct Foo {}
, struct Foo
, and struct Foo()
, all of which
are valid, but will have different representations.
Trait Implementations
impl Eq for Fields
[src]
impl StructuralEq for Fields
[src]
impl StructuralPartialEq for Fields
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fields
impl Send for Fields
impl Sync for Fields
impl Unpin for Fields
impl UnwindSafe for Fields
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<A> Serialize for A where
A: Deserial + Serial,
[src]
A: Deserial + Serial,