pub enum SourceCategory {
BuiltIn,
External,
UserDefined,
}Expand description
Represents the category of the source for a PHP construct.
This enum categorizes the origin of a source, based on where it is are defined. The categories are useful for distinguishing between user-written code, vendor-provided libraries, and built-in PHP features.
§Variants
BuiltIn: Represents a construct that is part of PHP’s core or extension libraries.External: Represents a construct defined in a vendor-provided or third-party library.UserDefined: Represents a construct written by the user or part of the current project.
Variants§
BuiltIn
Represents a PHP construct that is part of the PHP core or extension libraries.
External
Represents a PHP construct defined in vendor-provided or third-party libraries.
UserDefined
Represents a PHP construct written by the user or part of the current project.
Implementations§
Source§impl SourceCategory
Methods for SourceCategory.
impl SourceCategory
Methods for SourceCategory.
pub const fn is_built_in(&self) -> bool
pub const fn is_external(&self) -> bool
pub const fn is_user_defined(&self) -> bool
Trait Implementations§
Source§impl Clone for SourceCategory
impl Clone for SourceCategory
Source§fn clone(&self) -> SourceCategory
fn clone(&self) -> SourceCategory
Returns a duplicate of the value. Read more
1.0.0 · 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 SourceCategory
impl Debug for SourceCategory
Source§impl Default for SourceCategory
impl Default for SourceCategory
Source§fn default() -> SourceCategory
fn default() -> SourceCategory
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SourceCategory
impl<'de> Deserialize<'de> for SourceCategory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SourceCategory
impl Hash for SourceCategory
Source§impl Ord for SourceCategory
impl Ord for SourceCategory
Source§fn cmp(&self, other: &SourceCategory) -> Ordering
fn cmp(&self, other: &SourceCategory) -> Ordering
1.21.0 · 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 SourceCategory
impl PartialEq for SourceCategory
Source§impl PartialOrd for SourceCategory
impl PartialOrd for SourceCategory
Source§impl Serialize for SourceCategory
impl Serialize for SourceCategory
impl Copy for SourceCategory
impl Eq for SourceCategory
impl StructuralPartialEq for SourceCategory
Auto Trait Implementations§
impl Freeze for SourceCategory
impl RefUnwindSafe for SourceCategory
impl Send for SourceCategory
impl Sync for SourceCategory
impl Unpin for SourceCategory
impl UnwindSafe for SourceCategory
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