pub struct ObjectShape {
pub properties: HashMap<String, Type>,
pub function_type: Option<FunctionSignature>,
}Expand description
Shape of an object or function type.
Ported from TS ObjectShape.
Fields§
§properties: HashMap<String, Type>§function_type: Option<FunctionSignature>Trait Implementations§
Source§impl Clone for ObjectShape
impl Clone for ObjectShape
Source§fn clone(&self) -> ObjectShape
fn clone(&self) -> ObjectShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObjectShape
impl RefUnwindSafe for ObjectShape
impl Send for ObjectShape
impl Sync for ObjectShape
impl Unpin for ObjectShape
impl UnsafeUnpin for ObjectShape
impl UnwindSafe for ObjectShape
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