pub struct Def {
pub id: String,
pub name: String,
pub namespace: String,
pub kind: String,
pub file: String,
pub line: usize,
pub methods: Vec<String>,
pub test_methods: Vec<String>,
pub also_in: Vec<AlsoIn>,
pub end_line: usize,
}Expand description
Represents Def.
Fields§
§id: StringThe id value.
name: StringThe name value.
namespace: StringThe namespace value.
kind: StringThe kind value.
file: StringThe file value.
line: usizeThe line value.
methods: Vec<String>The methods value.
test_methods: Vec<String>Test-coverage stage – the one member fact that SURVIVES onto disk
(properties/fields/extensionMethods/bases are resolution inputs
only, stripped before the row is written): devscout tests reads it back
out of graph.json. Positioned after methods and before also_in, and
omitted when empty, so a def declaring no tests keeps its exact
pre-stage bytes.
also_in: Vec<AlsoIn>The also in value.
end_line: usizeThe end line value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Def
impl<'de> Deserialize<'de> for Def
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
impl StructuralPartialEq for Def
Auto Trait Implementations§
impl Freeze for Def
impl RefUnwindSafe for Def
impl Send for Def
impl Sync for Def
impl Unpin for Def
impl UnsafeUnpin for Def
impl UnwindSafe for Def
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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