pub struct StructLayout { /* private fields */ }Implementations§
Source§impl StructLayout
impl StructLayout
pub fn new( name: String, field_names: Vec<Rc<String>>, field_storage: Vec<FieldStorage>, field_types: Vec<Type>, weak_targets: Vec<Option<Type>>, ) -> Self
pub fn name(&self) -> &str
pub fn field_names(&self) -> &[Rc<String>]
pub fn index_of_rc(&self, key: &Rc<String>) -> Option<usize>
pub fn index_of_str(&self, key: &str) -> Option<usize>
pub fn field_storage(&self, index: usize) -> FieldStorage
pub fn field_type(&self, index: usize) -> &Type
pub fn weak_target(&self, index: usize) -> Option<&Type>
pub fn is_weak(&self, index: usize) -> bool
pub fn canonicalize_field_value( &self, index: usize, value: Value, ) -> Result<Value, String>
pub fn materialize_field_value(&self, index: usize, value: Value) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StructLayout
impl RefUnwindSafe for StructLayout
impl !Send for StructLayout
impl !Sync for StructLayout
impl Unpin for StructLayout
impl UnsafeUnpin for StructLayout
impl UnwindSafe for StructLayout
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