pub struct ObjectTypeInternalSlot {
pub id: Identifier,
pub value: TypeAnnotation,
pub optional: bool,
pub is_static: bool,
pub method: bool,
}Expand description
An internal slot on an object type ({ [[call]](x: number): string }).
Fields§
§id: Identifier§value: TypeAnnotation§optional: bool§is_static: bool§method: boolTrait Implementations§
Source§impl Clone for ObjectTypeInternalSlot
impl Clone for ObjectTypeInternalSlot
Source§fn clone(&self) -> ObjectTypeInternalSlot
fn clone(&self) -> ObjectTypeInternalSlot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectTypeInternalSlot
impl Debug for ObjectTypeInternalSlot
Source§impl<'de> Deserialize<'de> for ObjectTypeInternalSlot
impl<'de> Deserialize<'de> for ObjectTypeInternalSlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ObjectTypeInternalSlot
impl RefUnwindSafe for ObjectTypeInternalSlot
impl Send for ObjectTypeInternalSlot
impl Sync for ObjectTypeInternalSlot
impl Unpin for ObjectTypeInternalSlot
impl UnsafeUnpin for ObjectTypeInternalSlot
impl UnwindSafe for ObjectTypeInternalSlot
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