pub struct AssumeSpecification {Show 16 fields
pub attrs: Vec<Attribute>,
pub vis: Visibility,
pub assume_specification: AssumeSpecification,
pub generics: Generics,
pub bracket_token: Bracket,
pub qself: Option<QSelf>,
pub path: Path,
pub inputs: Option<(Paren, Punctuated<FnArg, Comma>)>,
pub output: ReturnType,
pub requires: Option<Requires>,
pub ensures: Option<Ensures>,
pub default_ensures: Option<DefaultEnsures>,
pub returns: Option<Returns>,
pub invariants: Option<SignatureInvariants>,
pub unwind: Option<SignatureUnwind>,
pub semi: Semi,
}Fields§
§attrs: Vec<Attribute>§vis: Visibility§assume_specification: AssumeSpecification§generics: Generics§bracket_token: Bracket§qself: Option<QSelf>§path: Path§inputs: Option<(Paren, Punctuated<FnArg, Comma>)>§output: ReturnType§requires: Option<Requires>§ensures: Option<Ensures>§default_ensures: Option<DefaultEnsures>§returns: Option<Returns>§invariants: Option<SignatureInvariants>§unwind: Option<SignatureUnwind>§semi: SemiTrait Implementations§
Source§impl Clone for AssumeSpecification
Available on crate feature clone-impls only.
impl Clone for AssumeSpecification
Available on crate feature
clone-impls only.Source§impl Debug for AssumeSpecification
Available on crate feature extra-traits only.
impl Debug for AssumeSpecification
Available on crate feature
extra-traits only.Source§impl From<AssumeSpecification> for Item
impl From<AssumeSpecification> for Item
Source§fn from(e: AssumeSpecification) -> Item
fn from(e: AssumeSpecification) -> Item
Converts to this type from the input type.
Source§impl Hash for AssumeSpecification
Available on crate feature extra-traits only.
impl Hash for AssumeSpecification
Available on crate feature
extra-traits only.Source§impl Parse for AssumeSpecification
impl Parse for AssumeSpecification
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl PartialEq for AssumeSpecification
Available on crate feature extra-traits only.
impl PartialEq for AssumeSpecification
Available on crate feature
extra-traits only.Source§impl ToTokens for AssumeSpecification
impl ToTokens for AssumeSpecification
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &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 Eq for AssumeSpecification
Available on crate feature
extra-traits only.Auto Trait Implementations§
impl Freeze for AssumeSpecification
impl RefUnwindSafe for AssumeSpecification
impl !Send for AssumeSpecification
impl !Sync for AssumeSpecification
impl Unpin for AssumeSpecification
impl UnsafeUnpin for AssumeSpecification
impl UnwindSafe for AssumeSpecification
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> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
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.