pub enum ProvidedType {
Union(Type),
Parse(String),
}Expand description
A type contributed by a plugin. Parse carries a docblock-syntax type
string (e.g. list<non-empty-string>) that the analyzer resolves with its
own type parser in the context of the analyzed file — this is what the
Psalm bridge returns, since PHP-side plugins produce type strings.
Variants§
Trait Implementations§
Source§impl Clone for ProvidedType
impl Clone for ProvidedType
Source§fn clone(&self) -> ProvidedType
fn clone(&self) -> ProvidedType
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 moreAuto Trait Implementations§
impl Freeze for ProvidedType
impl RefUnwindSafe for ProvidedType
impl Send for ProvidedType
impl Sync for ProvidedType
impl Unpin for ProvidedType
impl UnsafeUnpin for ProvidedType
impl UnwindSafe for ProvidedType
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