pub enum TypedObjectFieldSource {
Literal(ExprId),
Absent(ExprId),
Spread {
source_index: usize,
field_name: String,
source_ty: Type,
fallback: Option<Box<TypedObjectFieldSource>>,
},
}Variants§
Literal(ExprId)
Absent(ExprId)
Spread
source_index counts the literal’s Spread members; source_ty is the
spread’s Type::Object so codegen can index by BTreeMap order.
Implementations§
Source§impl TypedObjectFieldSource
impl TypedObjectFieldSource
pub fn literal_expr_id(&self) -> Option<ExprId>
Trait Implementations§
Source§impl Clone for TypedObjectFieldSource
impl Clone for TypedObjectFieldSource
Source§impl Debug for TypedObjectFieldSource
impl Debug for TypedObjectFieldSource
Source§impl PartialEq for TypedObjectFieldSource
impl PartialEq for TypedObjectFieldSource
impl StructuralPartialEq for TypedObjectFieldSource
Auto Trait Implementations§
impl Freeze for TypedObjectFieldSource
impl RefUnwindSafe for TypedObjectFieldSource
impl Send for TypedObjectFieldSource
impl Sync for TypedObjectFieldSource
impl Unpin for TypedObjectFieldSource
impl UnsafeUnpin for TypedObjectFieldSource
impl UnwindSafe for TypedObjectFieldSource
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