pub struct Caret { /* private fields */ }Expand description
The Rust punctuation token ^.
Implementations§
Source§impl Caret
impl Caret
pub const TEXT: &'static str = "^"
pub fn new(span: Span) -> Self
pub fn span(&self) -> Span
pub fn set_span(&mut self, span: Span)
pub fn spacing(&self) -> Spacing
pub fn set_spacing(&mut self, spacing: Spacing)
pub fn with_spacing(self, spacing: Spacing) -> Self
pub fn as_str(&self) -> &'static str
pub fn to_token_tree(&self) -> TokenTree
pub fn into_token_tree(self) -> TokenTree
Trait Implementations§
impl Copy for Caret
impl Eq for Caret
impl StructuralPartialEq for Caret
Auto Trait Implementations§
impl !Send for Caret
impl !Sync for Caret
impl Freeze for Caret
impl RefUnwindSafe for Caret
impl Unpin for Caret
impl UnsafeUnpin for Caret
impl UnwindSafe for Caret
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