Enum swc_ecma_ast::Callee
source · [−]Variants
Super(Super)
Import(Import)
Expr(Box<Expr>)
Implementations
sourceimpl Callee
impl Callee
sourcepub fn as_super_(&self) -> Option<&Super>
pub fn as_super_(&self) -> Option<&Super>
Returns Some
if self
is a reference of variant Super
, and None
otherwise.
sourcepub fn as_mut_super_(&mut self) -> Option<&mut Super>
pub fn as_mut_super_(&mut self) -> Option<&mut Super>
Returns Some
if self
is a mutable reference of variant Super
, and None
otherwise.
sourcepub fn expect_super_(self) -> Superwhere
Self: Debug,
pub fn expect_super_(self) -> Superwhere
Self: Debug,
sourcepub fn super_(self) -> Option<Super>
pub fn super_(self) -> Option<Super>
Returns Some
if self
is of variant Super
, and None
otherwise.
sourcepub fn as_import(&self) -> Option<&Import>
pub fn as_import(&self) -> Option<&Import>
Returns Some
if self
is a reference of variant Import
, and None
otherwise.
sourcepub fn as_mut_import(&mut self) -> Option<&mut Import>
pub fn as_mut_import(&mut self) -> Option<&mut Import>
Returns Some
if self
is a mutable reference of variant Import
, and None
otherwise.
sourcepub fn expect_import(self) -> Importwhere
Self: Debug,
pub fn expect_import(self) -> Importwhere
Self: Debug,
sourcepub fn import(self) -> Option<Import>
pub fn import(self) -> Option<Import>
Returns Some
if self
is of variant Import
, and None
otherwise.
sourcepub fn as_expr(&self) -> Option<&Box<Expr>>
pub fn as_expr(&self) -> Option<&Box<Expr>>
Returns Some
if self
is a reference of variant Expr
, and None
otherwise.
sourcepub fn as_mut_expr(&mut self) -> Option<&mut Box<Expr>>
pub fn as_mut_expr(&mut self) -> Option<&mut Box<Expr>>
Returns Some
if self
is a mutable reference of variant Expr
, and None
otherwise.
sourcepub fn expect_expr(self) -> Box<Expr>where
Self: Debug,
pub fn expect_expr(self) -> Box<Expr>where
Self: Debug,
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Callee
impl<'de> Deserialize<'de> for Callee
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 Callee
impl EqIgnoreSpan for Callee
fn eq_ignore_span(&self, other: &Self) -> bool
impl Eq for Callee
impl StructuralEq for Callee
impl StructuralPartialEq for Callee
Auto Trait Implementations
impl RefUnwindSafe for Callee
impl Send for Callee
impl Sync for Callee
impl Unpin for Callee
impl UnwindSafe for Callee
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