pub struct Semi { /* private fields */ }Implementations§
Source§impl Semi
impl Semi
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 Semi
impl Eq for Semi
impl StructuralPartialEq for Semi
Auto Trait Implementations§
impl !Send for Semi
impl !Sync for Semi
impl Freeze for Semi
impl RefUnwindSafe for Semi
impl Unpin for Semi
impl UnsafeUnpin for Semi
impl UnwindSafe for Semi
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