Enum proclet::DelimiterKind
source · pub enum DelimiterKind {
Parenthesis,
Brace,
Bracket,
None,
}
Expand description
Delimiter. This is exactly like proc_macro*::Delimiter
, but doesn’t depend on
which proc-macro crate you use.
Variants§
Trait Implementations§
source§impl Clone for DelimiterKind
impl Clone for DelimiterKind
source§fn clone(&self) -> DelimiterKind
fn clone(&self) -> DelimiterKind
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 Debug for DelimiterKind
impl Debug for DelimiterKind
source§impl From<Delimiter> for DelimiterKind
Available on crate feature proc-macro2
only.
impl From<Delimiter> for DelimiterKind
Available on crate feature
proc-macro2
only.source§impl From<Delimiter> for DelimiterKind
Available on crate feature proc-macro
only.
impl From<Delimiter> for DelimiterKind
Available on crate feature
proc-macro
only.source§impl From<DelimiterKind> for Delimiter
Available on crate feature proc-macro2
only.
impl From<DelimiterKind> for Delimiter
Available on crate feature
proc-macro2
only.source§fn from(value: DelimiterKind) -> Self
fn from(value: DelimiterKind) -> Self
Converts to this type from the input type.
source§impl From<DelimiterKind> for Delimiter
Available on crate feature proc-macro
only.
impl From<DelimiterKind> for Delimiter
Available on crate feature
proc-macro
only.source§fn from(value: DelimiterKind) -> Self
fn from(value: DelimiterKind) -> Self
Converts to this type from the input type.
source§impl PartialEq<Delimiter> for DelimiterKind
Available on crate feature proc-macro
only.
impl PartialEq<Delimiter> for DelimiterKind
Available on crate feature
proc-macro
only.source§impl PartialEq<Delimiter> for DelimiterKind
Available on crate feature proc-macro2
only.
impl PartialEq<Delimiter> for DelimiterKind
Available on crate feature
proc-macro2
only.source§impl PartialEq<DelimiterKind> for Delimiter
Available on crate feature proc-macro
only.
impl PartialEq<DelimiterKind> for Delimiter
Available on crate feature
proc-macro
only.source§fn eq(&self, rhs: &DelimiterKind) -> bool
fn eq(&self, rhs: &DelimiterKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<DelimiterKind> for Delimiter
Available on crate feature proc-macro2
only.
impl PartialEq<DelimiterKind> for Delimiter
Available on crate feature
proc-macro2
only.source§fn eq(&self, rhs: &DelimiterKind) -> bool
fn eq(&self, rhs: &DelimiterKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for DelimiterKind
impl PartialEq for DelimiterKind
source§fn eq(&self, other: &DelimiterKind) -> bool
fn eq(&self, other: &DelimiterKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DelimiterKind
impl Eq for DelimiterKind
impl StructuralPartialEq for DelimiterKind
Auto Trait Implementations§
impl Freeze for DelimiterKind
impl RefUnwindSafe for DelimiterKind
impl Send for DelimiterKind
impl Sync for DelimiterKind
impl Unpin for DelimiterKind
impl UnwindSafe for DelimiterKind
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