Enum rustfmt_nightly::comment::CharClassesStatus
source · [−]enum CharClassesStatus {
}Variants
Normal
LitString
Character is within a string
LitStringEscape
LitRawString(u32)
Character is within a raw string
RawStringPrefix(u32)
RawStringSuffix(u32)
LitChar
LitCharEscape
BlockComment(u32)
Character inside a block comment, with the integer indicating the nesting deepness of the comment
StringInBlockComment(u32)
Character inside a block-commented string, with the integer indicating the nesting deepness of the comment
BlockCommentOpening(u32)
Status when the ‘/’ has been consumed, but not yet the ‘*’, deepness is the new deepness (after the comment opening).
BlockCommentClosing(u32)
Status when the ‘*’ has been consumed, but not yet the ‘/’, deepness is the new deepness (after the comment closing).
LineComment
Character is within a line comment
Trait Implementations
sourceimpl Clone for CharClassesStatus
impl Clone for CharClassesStatus
sourcefn clone(&self) -> CharClassesStatus
fn clone(&self) -> CharClassesStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CharClassesStatus
impl Debug for CharClassesStatus
sourceimpl PartialEq<CharClassesStatus> for CharClassesStatus
impl PartialEq<CharClassesStatus> for CharClassesStatus
sourcefn eq(&self, other: &CharClassesStatus) -> bool
fn eq(&self, other: &CharClassesStatus) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CharClassesStatus) -> bool
fn ne(&self, other: &CharClassesStatus) -> bool
This method tests for !=.
impl Copy for CharClassesStatus
impl Eq for CharClassesStatus
impl StructuralEq for CharClassesStatus
impl StructuralPartialEq for CharClassesStatus
Auto Trait Implementations
impl RefUnwindSafe for CharClassesStatus
impl Send for CharClassesStatus
impl Sync for CharClassesStatus
impl Unpin for CharClassesStatus
impl UnwindSafe for CharClassesStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
Normal: 0 bytesLitString: 0 bytesLitStringEscape: 0 bytesLitRawString: 4 bytesRawStringPrefix: 4 bytesRawStringSuffix: 4 bytesLitChar: 0 bytesLitCharEscape: 0 bytesBlockComment: 4 bytesStringInBlockComment: 4 bytesBlockCommentOpening: 4 bytesBlockCommentClosing: 4 bytesLineComment: 0 bytes