pub struct TseAttribute {
pub name: String,
pub value: Option<JsExpr>,
pub is_directive: bool,
pub span: Span,
pub trivia: Trivia,
}Expand description
TSE 属性
Fields§
§name: String属性名
value: Option<JsExpr>属性值
is_directive: bool是否为指令
span: Span位置信息
trivia: TriviaTrivia 信息
Implementations§
Trait Implementations§
Source§impl Clone for TseAttribute
impl Clone for TseAttribute
Source§fn clone(&self) -> TseAttribute
fn clone(&self) -> TseAttribute
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TseAttribute
impl Debug for TseAttribute
Source§impl<'de> Deserialize<'de> for TseAttribute
impl<'de> Deserialize<'de> for TseAttribute
Source§fn 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
Source§impl PartialEq for TseAttribute
impl PartialEq for TseAttribute
Source§impl Serialize for TseAttribute
impl Serialize for TseAttribute
impl StructuralPartialEq for TseAttribute
Auto Trait Implementations§
impl Freeze for TseAttribute
impl RefUnwindSafe for TseAttribute
impl Send for TseAttribute
impl Sync for TseAttribute
impl Unpin for TseAttribute
impl UnsafeUnpin for TseAttribute
impl UnwindSafe for TseAttribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more