pub struct PhpVersionBranch { /* private fields */ }Expand description
PHP minor release branch metadata such as 8.3.
Implementations§
Source§impl PhpVersionBranch
impl PhpVersionBranch
pub fn new( major: u16, minor: u16, ) -> Result<PhpVersionBranch, PhpVersionParseError>
pub fn from_version( version: &PhpVersion, ) -> Result<PhpVersionBranch, PhpVersionParseError>
pub const fn major(self) -> u16
pub const fn minor(self) -> u16
Trait Implementations§
Source§impl Clone for PhpVersionBranch
impl Clone for PhpVersionBranch
Source§fn clone(&self) -> PhpVersionBranch
fn clone(&self) -> PhpVersionBranch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PhpVersionBranch
impl Debug for PhpVersionBranch
Source§impl Display for PhpVersionBranch
impl Display for PhpVersionBranch
Source§impl Hash for PhpVersionBranch
impl Hash for PhpVersionBranch
Source§impl Ord for PhpVersionBranch
impl Ord for PhpVersionBranch
Source§fn cmp(&self, other: &PhpVersionBranch) -> Ordering
fn cmp(&self, other: &PhpVersionBranch) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PhpVersionBranch
impl PartialEq for PhpVersionBranch
Source§fn eq(&self, other: &PhpVersionBranch) -> bool
fn eq(&self, other: &PhpVersionBranch) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PhpVersionBranch
impl PartialOrd for PhpVersionBranch
impl Copy for PhpVersionBranch
impl Eq for PhpVersionBranch
impl StructuralPartialEq for PhpVersionBranch
Auto Trait Implementations§
impl Freeze for PhpVersionBranch
impl RefUnwindSafe for PhpVersionBranch
impl Send for PhpVersionBranch
impl Sync for PhpVersionBranch
impl Unpin for PhpVersionBranch
impl UnsafeUnpin for PhpVersionBranch
impl UnwindSafe for PhpVersionBranch
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