pub enum ReferenceKind {
Object,
Value,
}Expand description
The kind of a Reference.
Variants§
Object
The same object again (r:).
PHP writes this when an object appears more than once. It can only refer to objects.
Value
A PHP reference (R:), a value that was assigned by reference
($b = &$a).
It can refer to any value.
Trait Implementations§
Source§impl Clone for ReferenceKind
impl Clone for ReferenceKind
impl Copy for ReferenceKind
Source§impl Debug for ReferenceKind
impl Debug for ReferenceKind
impl Eq for ReferenceKind
Source§impl Hash for ReferenceKind
impl Hash for ReferenceKind
Source§impl Ord for ReferenceKind
impl Ord for ReferenceKind
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ReferenceKind
impl PartialEq for ReferenceKind
Source§impl PartialOrd for ReferenceKind
impl PartialOrd for ReferenceKind
impl StructuralPartialEq for ReferenceKind
Auto Trait Implementations§
impl Freeze for ReferenceKind
impl RefUnwindSafe for ReferenceKind
impl Send for ReferenceKind
impl Sync for ReferenceKind
impl Unpin for ReferenceKind
impl UnsafeUnpin for ReferenceKind
impl UnwindSafe for ReferenceKind
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