#[repr(C)]pub struct Property {
pub name: RString,
pub docs: DocBlock,
pub ty: Option<DataType>,
pub vis: Visibility,
pub static_: bool,
pub nullable: bool,
pub default: Option<RString>,
}
Expand description
Represents a property attached to an exported class.
Fields§
§name: RString
Name of the property.
docs: DocBlock
Documentation comments for the property.
ty: Option<DataType>
Type of the property (Not implemented #376)
vis: Visibility
Visibility of the property.
static_: bool
Whether the property is static.
nullable: bool
Whether the property is nullable. (Not implemented #376)
default: Option<RString>
Default value of the property. (Not implemented #376)
Trait Implementations§
Source§impl From<(String, PropertyFlags, &'static [&'static str])> for Property
impl From<(String, PropertyFlags, &'static [&'static str])> for Property
Source§fn from(value: (String, PropertyFlags, DocComments)) -> Self
fn from(value: (String, PropertyFlags, DocComments)) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl !Send for Property
impl !Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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