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