pub struct Version { /* private fields */ }Implementations§
Source§impl Version
impl Version
pub fn peers(self, peers: &[&str]) -> Self
pub fn init<F>(self, init: F) -> Self
pub fn rename_structs(self, name: &str, map: &'static [[&str; 2]]) -> Self
pub fn rename_methods(self, name: &str, map: &'static [[&str; 2]]) -> Self
pub fn rename_members(self, name: &str, map: &'static [[&str; 2]]) -> Self
pub fn rename_variants(self, name: &str, map: &'static [[&str; 2]]) -> Self
Source§impl Version
impl Version
pub fn hook_method_call_expr<F>(self, f: F) -> Self
pub fn hook_method_call_expr_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_call_expr<F>(self, f: F) -> Self
pub fn hook_call_expr_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_ident_pat<F>(self, f: F) -> Self
pub fn hook_ident_pat_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_path<F>(self, f: F) -> Self
pub fn hook_path_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_path_expr<F>(self, f: F) -> Self
pub fn hook_path_expr_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_path_pat<F>(self, f: F) -> Self
pub fn hook_path_pat_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_field_expr<F>(self, f: F) -> Self
pub fn hook_field_expr_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_record_pat<F>(self, f: F) -> Self
pub fn hook_record_pat_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_record_expr<F>(self, f: F) -> Self
pub fn hook_record_expr_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_record_expr_field<F>(self, f: F) -> Self
pub fn hook_record_expr_field_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_record_pat_field<F>(self, f: F) -> Self
pub fn hook_record_pat_field_on<F>(self, path: &str, name: &str, f: F) -> Self
pub fn hook_tuple_struct_pat<F>(self, f: F) -> Self
pub fn hook_tuple_struct_pat_on<F>(self, path: &str, name: &str, f: F) -> Self
Auto Trait Implementations§
impl Freeze for Version
impl !RefUnwindSafe for Version
impl !Send for Version
impl !Sync for Version
impl Unpin for Version
impl !UnwindSafe for Version
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> Cast for T
impl<T> Cast for T
Source§fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U using CastTo.