pub struct ValueInfo {
pub id: &'static str,
pub sent_ids: &'static [&'static str],
pub ancestors: &'static [&'static str],
pub custom: bool,
pub make: fn() -> ValueHandle,
pub type_code: fn() -> TypeCode,
}Expand description
What the generated code tells the runtime about a valuetype.
Fields§
§id: &'static strThe repository id.
sent_ids: &'static [&'static str]The repository ids a value is sent with: its own, then those of the base types it is truncatable to. A value with more than one is sent chunked.
ancestors: &'static [&'static str]The repository ids of the type and of all its concrete base types: where a value of this type may stand.
custom: boolWhether the type is custom marshaled: its state is written by
CustomMarshal, and is always chunked.
make: fn() -> ValueHandleMakes an instance with the default state, which is then read.
type_code: fn() -> TypeCodeThe TypeCode.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ValueInfo
impl Freeze for ValueInfo
impl RefUnwindSafe for ValueInfo
impl Send for ValueInfo
impl Sync for ValueInfo
impl Unpin for ValueInfo
impl UnsafeUnpin for ValueInfo
impl UnwindSafe for ValueInfo
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