pub struct DirectiveLine {
pub name: String,
pub value: Option<String>,
pub span: Span,
}Expand description
A top-level directive line (starts with @)
Fields§
§name: String§value: Option<String>§span: SpanTrait Implementations§
Source§impl Clone for DirectiveLine
impl Clone for DirectiveLine
Source§fn clone(&self) -> DirectiveLine
fn clone(&self) -> DirectiveLine
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DirectiveLine
impl RefUnwindSafe for DirectiveLine
impl Send for DirectiveLine
impl Sync for DirectiveLine
impl Unpin for DirectiveLine
impl UnwindSafe for DirectiveLine
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