pub enum PhpDeclarationKind {
Class,
Interface,
Trait,
Enum,
Function,
Method,
Property,
Constant,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PhpDeclarationKind
impl Clone for PhpDeclarationKind
Source§fn clone(&self) -> PhpDeclarationKind
fn clone(&self) -> PhpDeclarationKind
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 PhpDeclarationKind
impl Debug for PhpDeclarationKind
Source§impl Display for PhpDeclarationKind
impl Display for PhpDeclarationKind
Source§impl FromStr for PhpDeclarationKind
impl FromStr for PhpDeclarationKind
Source§type Err = PhpSyntaxError
type Err = PhpSyntaxError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<PhpDeclarationKind, <PhpDeclarationKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<PhpDeclarationKind, <PhpDeclarationKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for PhpDeclarationKind
impl Hash for PhpDeclarationKind
Source§impl Ord for PhpDeclarationKind
impl Ord for PhpDeclarationKind
Source§fn cmp(&self, other: &PhpDeclarationKind) -> Ordering
fn cmp(&self, other: &PhpDeclarationKind) -> 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 PhpDeclarationKind
impl PartialEq for PhpDeclarationKind
Source§fn eq(&self, other: &PhpDeclarationKind) -> bool
fn eq(&self, other: &PhpDeclarationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PhpDeclarationKind
impl PartialOrd for PhpDeclarationKind
impl Copy for PhpDeclarationKind
impl Eq for PhpDeclarationKind
impl StructuralPartialEq for PhpDeclarationKind
Auto Trait Implementations§
impl Freeze for PhpDeclarationKind
impl RefUnwindSafe for PhpDeclarationKind
impl Send for PhpDeclarationKind
impl Sync for PhpDeclarationKind
impl Unpin for PhpDeclarationKind
impl UnsafeUnpin for PhpDeclarationKind
impl UnwindSafe for PhpDeclarationKind
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