Struct swc_ecma_ast::TsPropertySignature
source · [−]pub struct TsPropertySignature {
pub span: Span,
pub readonly: bool,
pub key: Box<Expr>,
pub computed: bool,
pub optional: bool,
pub init: Option<Box<Expr>>,
pub params: Vec<TsFnParam>,
pub type_ann: Option<Box<TsTypeAnn>>,
pub type_params: Option<Box<TsTypeParamDecl>>,
}
Fields
span: Span
readonly: bool
key: Box<Expr>
computed: bool
optional: bool
init: Option<Box<Expr>>
params: Vec<TsFnParam>
type_ann: Option<Box<TsTypeAnn>>
type_params: Option<Box<TsTypeParamDecl>>
Trait Implementations
sourceimpl Clone for TsPropertySignature
impl Clone for TsPropertySignature
sourcefn clone(&self) -> TsPropertySignature
fn clone(&self) -> TsPropertySignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TsPropertySignature
impl Debug for TsPropertySignature
sourceimpl<'de> Deserialize<'de> for TsPropertySignature
impl<'de> Deserialize<'de> for TsPropertySignature
sourcefn 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
sourceimpl EqIgnoreSpan for TsPropertySignature
impl EqIgnoreSpan for TsPropertySignature
fn eq_ignore_span(&self, other: &Self) -> bool
sourceimpl From<TsPropertySignature> for TsTypeElement
impl From<TsPropertySignature> for TsTypeElement
sourcefn from(v: TsPropertySignature) -> Self
fn from(v: TsPropertySignature) -> Self
Converts to this type from the input type.
sourceimpl Hash for TsPropertySignature
impl Hash for TsPropertySignature
sourceimpl PartialEq<TsPropertySignature> for TsPropertySignature
impl PartialEq<TsPropertySignature> for TsPropertySignature
sourcefn eq(&self, other: &TsPropertySignature) -> bool
fn eq(&self, other: &TsPropertySignature) -> bool
sourceimpl Serialize for TsPropertySignature
impl Serialize for TsPropertySignature
sourceimpl Spanned for TsPropertySignature
impl Spanned for TsPropertySignature
impl Eq for TsPropertySignature
impl StructuralEq for TsPropertySignature
impl StructuralPartialEq for TsPropertySignature
Auto Trait Implementations
impl RefUnwindSafe for TsPropertySignature
impl Send for TsPropertySignature
impl Sync for TsPropertySignature
impl Unpin for TsPropertySignature
impl UnwindSafe for TsPropertySignature
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