pub struct NumPyReturns {
pub range: TextRange,
pub name: Option<TextRange>,
pub colon: Option<TextRange>,
pub return_type: Option<TextRange>,
pub description: TextRange,
}Expand description
NumPy-style return or yield value.
Fields§
§range: TextRangeSource span.
name: Option<TextRange>Return value name (optional in NumPy style) with its span.
colon: Option<TextRange>The colon (:) separating name from type, with its span, if present.
return_type: Option<TextRange>Return type with its span.
description: TextRangeDescription with its span.
Trait Implementations§
Source§impl Clone for NumPyReturns
impl Clone for NumPyReturns
Source§fn clone(&self) -> NumPyReturns
fn clone(&self) -> NumPyReturns
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NumPyReturns
impl Debug for NumPyReturns
Source§impl PartialEq for NumPyReturns
impl PartialEq for NumPyReturns
impl StructuralPartialEq for NumPyReturns
Auto Trait Implementations§
impl Freeze for NumPyReturns
impl RefUnwindSafe for NumPyReturns
impl Send for NumPyReturns
impl Sync for NumPyReturns
impl Unpin for NumPyReturns
impl UnsafeUnpin for NumPyReturns
impl UnwindSafe for NumPyReturns
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