pub struct PropertySig {
pub ty: Type,
pub readonly: bool,
pub optional: bool,
pub intrinsic: bool,
pub doc: Option<DocComment>,
}Expand description
readonly mirrors the declared modifier and forbids writes through the
interface (shallow — it does not affect assignability). Optional properties
widen reads to T | undefined.
intrinsic marks a member codegen emits inline as an instruction sequence
(String#length/Array#length → payload struct.get + array.len): no
getter exists to import, and the emitter owns its lowering.
Fields§
§ty: Type§readonly: bool§optional: bool§intrinsic: bool§doc: Option<DocComment>Trait Implementations§
Source§impl Clone for PropertySig
impl Clone for PropertySig
Source§impl Debug for PropertySig
impl Debug for PropertySig
Source§impl<'de> Deserialize<'de> for PropertySig
impl<'de> Deserialize<'de> for PropertySig
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
Source§impl PartialEq for PropertySig
impl PartialEq for PropertySig
Source§impl Serialize for PropertySig
impl Serialize for PropertySig
impl StructuralPartialEq for PropertySig
Auto Trait Implementations§
impl Freeze for PropertySig
impl RefUnwindSafe for PropertySig
impl Send for PropertySig
impl Sync for PropertySig
impl Unpin for PropertySig
impl UnsafeUnpin for PropertySig
impl UnwindSafe for PropertySig
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