pub struct Version {
pub major: u32,
pub minor: u32,
pub patch: u32,
}Expand description
自定义类型示例:Version
语义化版本号
Fields§
§major: u32§minor: u32§patch: u32Trait Implementations§
impl Eq for Version
Source§impl FromParam for Version
impl FromParam for Version
Source§fn from_param(param: &str) -> Result<Self, ParseError>
fn from_param(param: &str) -> Result<Self, ParseError>
从字符串参数转换为目标类型 Read more
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin 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