pub struct ClassMembers {
pub methods: Vec<(String, bool, bool)>,
pub properties: Vec<(String, bool)>,
pub readonly_properties: Vec<String>,
pub constants: Vec<String>,
pub parent: Option<String>,
pub trait_uses: Vec<String>,
pub found: bool,
}Expand description
All members of a named class split by kind and static-ness.
Fields§
§methods: Vec<(String, bool, bool)>(name, is_static, has_params)
properties: Vec<(String, bool)>(name, is_static)
readonly_properties: Vec<String>Names of readonly properties (PHP 8.1+).
constants: Vec<String>§parent: Option<String>Direct parent class name, if any.
trait_uses: Vec<String>Trait names used by this class (use Foo, Bar;).
found: boolTrue when a class/enum/trait with this name was found in the doc. Lets workspace-wide loops short-circuit once the defining doc is hit instead of continuing to scan every file.
Trait Implementations§
Source§impl Debug for ClassMembers
impl Debug for ClassMembers
Source§impl Default for ClassMembers
impl Default for ClassMembers
Source§fn default() -> ClassMembers
fn default() -> ClassMembers
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClassMembers
impl RefUnwindSafe for ClassMembers
impl Send for ClassMembers
impl Sync for ClassMembers
impl Unpin for ClassMembers
impl UnsafeUnpin for ClassMembers
impl UnwindSafe for ClassMembers
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more