pub struct Property {
pub key: String,
pub value: Expression,
pub computed: Option<Expression>,
pub accessor: Option<bool>,
}Expand description
オブジェクトリテラルのプロパティ。
Fields§
§key: String§value: Expression§computed: Option<Expression>算出キー {[expr]: v} の場合のキー式。None なら key を使う。
accessor: Option<bool>{get x(){...}}/{set x(v){...}} アクセサの場合 Some(true)/Some(false)。
通常のプロパティ(値/メソッド短縮/短縮プロパティ)は None。
Trait Implementations§
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 UnsafeUnpin 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