[][src]Struct cargo_up::Version

pub struct Version { /* fields omitted */ }

Implementations

impl Version[src]

pub fn new(version: &str) -> Result<Self, SemVerError>[src]

impl Version[src]

pub fn peers(self, peers: &[&str]) -> Self[src]

pub fn rename_structs(self, name: &str, map: &[[&str; 2]]) -> Self[src]

pub fn rename_methods(self, name: &str, map: &[[&str; 2]]) -> Self[src]

pub fn rename_members(self, name: &str, map: &[[&str; 2]]) -> Self[src]

pub fn rename_variants(self, name: &str, map: &[[&str; 2]]) -> Self[src]

impl Version[src]

pub fn hook_method_call_expr<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &MethodCallExpr, &Semantics<'_>) + 'static, 
[src]

pub fn hook_call_expr<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &CallExpr, &Semantics<'_>) + 'static, 
[src]

pub fn hook_ident_pat<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &IdentPat, &Semantics<'_>) + 'static, 
[src]

pub fn hook_path<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &Path, &Semantics<'_>) + 'static, 
[src]

pub fn hook_path_expr<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &PathExpr, &Semantics<'_>) + 'static, 
[src]

pub fn hook_path_pat<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &PathPat, &Semantics<'_>) + 'static, 
[src]

pub fn hook_field_expr<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &FieldExpr, &Semantics<'_>) + 'static, 
[src]

pub fn hook_record_pat<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &RecordPat, &Semantics<'_>) + 'static, 
[src]

pub fn hook_record_expr<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &RecordExpr, &Semantics<'_>) + 'static, 
[src]

pub fn hook_record_expr_field<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &RecordExprField, &Semantics<'_>) + 'static, 
[src]

pub fn hook_record_pat_field<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &RecordPatField, &Semantics<'_>) + 'static, 
[src]

pub fn hook_tuple_struct_pat<F>(self, f: F) -> Self where
    F: Fn(&mut Upgrader, &TupleStructPat, &Semantics<'_>) + 'static, 
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Version

impl !Send for Version

impl !Sync for Version

impl Unpin for Version

impl !UnwindSafe for Version

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.