pub struct OpCompatVersions {
major: u32,
minor: u32,
span: Span,
}Fields§
§major: u32Increased when we make a wholly-incompatible change
Bumping this will cause rejection of AOPTIONS by old d-d engines. Hopefully a newer d-d will able to cope with both.
minor: u32Increased when we make a more subtle change
Current d-d versions will ignore this. Bumping it can be used to psas information from a newer capturing d-d to a newer template/driver d-d.
span: SpanSpan for error reporting
Implementations§
Trait Implementations§
Source§impl Clone for OpCompatVersions
impl Clone for OpCompatVersions
Source§fn clone(&self) -> OpCompatVersions
fn clone(&self) -> OpCompatVersions
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 OpCompatVersions
impl Debug for OpCompatVersions
Source§impl Parse for OpCompatVersions
impl Parse for OpCompatVersions
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl ToTokens for OpCompatVersions
impl ToTokens for OpCompatVersions
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,
impl Copy for OpCompatVersions
Auto Trait Implementations§
impl Freeze for OpCompatVersions
impl RefUnwindSafe for OpCompatVersions
impl !Send for OpCompatVersions
impl !Sync for OpCompatVersions
impl Unpin for OpCompatVersions
impl UnwindSafe for OpCompatVersions
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.