Struct dprint_swc_ecma_ast_view::TsPropertySignature[][src]

pub struct TsPropertySignature<'a> {
    pub parent: Node<'a>,
    pub inner: &'a TsPropertySignature,
    pub key: Expr<'a>,
    pub init: Option<Expr<'a>>,
    pub params: Vec<TsFnParam<'a>>,
    pub type_ann: Option<&'a TsTypeAnn<'a>>,
    pub type_params: Option<&'a TsTypeParamDecl<'a>>,
}

Fields

parent: Node<'a>inner: &'a TsPropertySignaturekey: Expr<'a>init: Option<Expr<'a>>params: Vec<TsFnParam<'a>>type_ann: Option<&'a TsTypeAnn<'a>>type_params: Option<&'a TsTypeParamDecl<'a>>

Implementations

impl<'a> TsPropertySignature<'a>[src]

pub fn readonly(&self) -> bool[src]

pub fn computed(&self) -> bool[src]

pub fn optional(&self) -> bool[src]

Trait Implementations

impl<'a> CastableNode<'a> for TsPropertySignature<'a>[src]

impl<'a> Clone for TsPropertySignature<'a>[src]

impl<'a> From<&'_ TsPropertySignature<'a>> for Node<'a>[src]

impl<'a> NodeTrait<'a> for TsPropertySignature<'a>[src]

impl<'a> Spanned for TsPropertySignature<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for TsPropertySignature<'a>

impl<'a> !Send for TsPropertySignature<'a>

impl<'a> !Sync for TsPropertySignature<'a>

impl<'a> Unpin for TsPropertySignature<'a>

impl<'a> !UnwindSafe for TsPropertySignature<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.