Enum yarner_lib::Line
source · [−]pub enum Line {
Macro {
indent: String,
name: String,
},
Source {
indent: String,
source: String,
},
}
Expand description
A Source
represents the source code on a line.
Variants
Macro
A macro invocation
Source
Fields
indent: String
Indentation of the line, without block indent
source: String
Source code in the line
A line of source code
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more