pub struct TargetSpec {
pub target: CodeUnit,
pub kind: TargetKind,
pub owner: Option<CodeUnit>,
pub member_name: String,
pub callable_arity: Option<CallableArity>,
pub activated_callable_arities: Vec<ActivatedCallableArity>,
pub param_types: Option<Vec<String>>,
pub enum_owner_kind: EnumOwnerKind,
pub owner_is_forward_declaration: bool,
}Fields§
§target: CodeUnit§kind: TargetKind§owner: Option<CodeUnit>§member_name: String§callable_arity: Option<CallableArity>§activated_callable_arities: Vec<ActivatedCallableArity>§param_types: Option<Vec<String>>§enum_owner_kind: EnumOwnerKind§owner_is_forward_declaration: boolImplementations§
Source§impl TargetSpec
impl TargetSpec
pub fn type_scan_key(&self) -> Option<TypeScanKey>
pub fn from_target( analyzer: &CppGraphSource<'_>, target: &CodeUnit, ) -> Option<Self>
pub fn with_visible_callable_arities<'a>( &'a self, analyzer: &CppGraphSource<'_>, cpp: &dyn CppSource, visibility: &VisibilityIndex<'_>, file: &ProjectFile, prepared: &PreparedSyntaxTree, ) -> Cow<'a, Self>
pub fn callable_arity_at(&self, byte: usize) -> Option<CallableArity>
pub fn new( target: CodeUnit, kind: TargetKind, owner: Option<CodeUnit>, member_name: String, callable_arity: Option<CallableArity>, param_types: Option<Vec<String>>, ) -> Self
Trait Implementations§
Source§impl Clone for TargetSpec
impl Clone for TargetSpec
Source§fn clone(&self) -> TargetSpec
fn clone(&self) -> TargetSpec
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 TargetSpec
impl RefUnwindSafe for TargetSpec
impl Send for TargetSpec
impl Sync for TargetSpec
impl Unpin for TargetSpec
impl UnsafeUnpin for TargetSpec
impl UnwindSafe for TargetSpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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