pub struct Method {
pub locations: Vec<TrackedMinLoc>,
pub docstring: Option<ImStr>,
pub arguments: Option<Box<[FunctionParam]>>,
pub pending_eval: AtomicBool,
pub eval_cache: Cache<Vec<TypeId>, TypeId>,
}Fields§
§locations: Vec<TrackedMinLoc>§docstring: Option<ImStr>§arguments: Option<Box<[FunctionParam]>>§pending_eval: AtomicBool§eval_cache: Cache<Vec<TypeId>, TypeId>Implementations§
Source§impl Method
impl Method
pub fn add_override( self: &mut Arc<Self>, location: MinLoc, top_level_scope: Option<Range>, base: bool, )
pub fn merge(self: &mut Arc<Self>, other: &Self)
Sourcepub fn postprocess_docstring(raw: &str) -> String
pub fn postprocess_docstring(raw: &str) -> String
Dedents the string according to python’s textwrap logic, and parses the method parameters.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Method
impl !RefUnwindSafe for Method
impl !UnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
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,
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