Struct typst_syntax::ast::SmartQuote
source · pub struct SmartQuote<'a>(/* private fields */);
Expand description
A smart quote: '
or "
.
Implementations§
Trait Implementations§
source§impl<'a> AstNode<'a> for SmartQuote<'a>
impl<'a> AstNode<'a> for SmartQuote<'a>
source§fn from_untyped(node: &'a SyntaxNode) -> Option<Self>
fn from_untyped(node: &'a SyntaxNode) -> Option<Self>
Convert a node into its typed variant.
source§fn to_untyped(self) -> &'a SyntaxNode
fn to_untyped(self) -> &'a SyntaxNode
A reference to the underlying syntax node.
source§impl<'a> Clone for SmartQuote<'a>
impl<'a> Clone for SmartQuote<'a>
source§fn clone(&self) -> SmartQuote<'a>
fn clone(&self) -> SmartQuote<'a>
Returns a copy 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<'a> Debug for SmartQuote<'a>
impl<'a> Debug for SmartQuote<'a>
source§impl Default for SmartQuote<'_>
impl Default for SmartQuote<'_>
source§impl<'a> Hash for SmartQuote<'a>
impl<'a> Hash for SmartQuote<'a>
source§impl<'a> PartialEq for SmartQuote<'a>
impl<'a> PartialEq for SmartQuote<'a>
source§fn eq(&self, other: &SmartQuote<'a>) -> bool
fn eq(&self, other: &SmartQuote<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for SmartQuote<'a>
impl<'a> Eq for SmartQuote<'a>
impl<'a> StructuralPartialEq for SmartQuote<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SmartQuote<'a>
impl<'a> Send for SmartQuote<'a>
impl<'a> Sync for SmartQuote<'a>
impl<'a> Unpin for SmartQuote<'a>
impl<'a> UnwindSafe for SmartQuote<'a>
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