Expand description
pretty much just new.target
function Thing(one, two) {
if (!new.target) {
return new Thing(one, two);
}
this.one = one;
this.two = two;
}
Fields
meta: Ident<'a>
property: Ident<'a>
Trait Implementations
sourceimpl<'a> PartialEq<MetaProp<'a>> for MetaProp<'a>
impl<'a> PartialEq<MetaProp<'a>> for MetaProp<'a>
impl<'a> StructuralPartialEq for MetaProp<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for MetaProp<'a>
impl<'a> Send for MetaProp<'a>
impl<'a> Sync for MetaProp<'a>
impl<'a> Unpin for MetaProp<'a>
impl<'a> UnwindSafe for MetaProp<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more