pub enum Specification {
None,
String(String),
File {
filename: String,
},
FileTag {
filename: String,
tag: String,
},
}Expand description
Specification of the lexer or parser (lexicon or grammar content or location)
Variants§
None
No source
String(String)
Source is in a string
File
Source is an existing file
FileTag
Source is between tags in an existing file
Implementations§
Trait Implementations§
Source§impl Clone for Specification
impl Clone for Specification
Source§fn clone(&self) -> Specification
fn clone(&self) -> Specification
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 moreSource§impl Debug for Specification
impl Debug for Specification
Source§impl PartialEq for Specification
impl PartialEq for Specification
impl StructuralPartialEq for Specification
Auto Trait Implementations§
impl Freeze for Specification
impl RefUnwindSafe for Specification
impl Send for Specification
impl Sync for Specification
impl Unpin for Specification
impl UnsafeUnpin for Specification
impl UnwindSafe for Specification
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
Source§impl<S> BuildFrom<S> for S
impl<S> BuildFrom<S> for S
Source§fn build_from(source: S) -> S
fn build_from(source: S) -> S
Converts to this type from the input type.
Source§impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
impl<S, T> BuildInto<T> for Swhere
T: BuildFrom<S>,
Source§fn build_into(self) -> T
fn build_into(self) -> T
Calls T::from(self) to convert a S into a T.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
impl<S, T> TryBuildInto<T> for Swhere
T: TryBuildFrom<S>,
Source§type Error = <T as TryBuildFrom<S>>::Error
type Error = <T as TryBuildFrom<S>>::Error
The type returned in the event of a conversion error.
Source§fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
fn try_build_into(self) -> Result<T, <T as TryBuildFrom<S>>::Error>
Performs the conversion.