pub struct UnprocessedOptions {
ts: TokenStream,
pub beta_enabled: Option<Enabled>,
}Expand description
All the template options, as a tokenstream, but sanity-checked
These have been syntax checked, but not semantically checked. The purpose of the syntax check is to get syntax errors early, when a template is defined - rather than when it’s applied.
This also helps with cross-crate compatibility.
Fields§
§ts: TokenStream§beta_enabled: Option<Enabled>Implementations§
Source§impl UnprocessedOptions
impl UnprocessedOptions
pub fn parse(input: ParseStream<'_>, opcontext: OpContext) -> Result<Self>
Trait Implementations§
Source§impl Clone for UnprocessedOptions
impl Clone for UnprocessedOptions
Source§fn clone(&self) -> UnprocessedOptions
fn clone(&self) -> UnprocessedOptions
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 UnprocessedOptions
impl Debug for UnprocessedOptions
Source§impl Default for UnprocessedOptions
impl Default for UnprocessedOptions
Source§fn default() -> UnprocessedOptions
fn default() -> UnprocessedOptions
Returns the “default value” for a type. Read more
Source§impl ToTokens for UnprocessedOptions
impl ToTokens for UnprocessedOptions
Source§fn to_tokens(&self, out: &mut TokenStream)
fn to_tokens(&self, out: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for UnprocessedOptions
impl RefUnwindSafe for UnprocessedOptions
impl !Send for UnprocessedOptions
impl !Sync for UnprocessedOptions
impl Unpin for UnprocessedOptions
impl UnwindSafe for UnprocessedOptions
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Spanned for T
impl<T> Spanned for T
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.