pub struct FunctionSpan {
pub name: Option<String>,
pub start_line: usize,
pub end_line: usize,
}Expand description
Wire form of crate::FunctionSpan.
Fields§
§name: Option<String>The function name, or null when it could not be resolved.
start_line: usizeThe first line of the function.
end_line: usizeThe last line of the function.
Trait Implementations§
Source§impl Clone for FunctionSpan
impl Clone for FunctionSpan
Source§fn clone(&self) -> FunctionSpan
fn clone(&self) -> FunctionSpan
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 moreSource§impl Debug for FunctionSpan
impl Debug for FunctionSpan
Source§impl<'de> Deserialize<'de> for FunctionSpan
impl<'de> Deserialize<'de> for FunctionSpan
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
Source§impl From<&FunctionSpan> for FunctionSpan
impl From<&FunctionSpan> for FunctionSpan
Source§fn from(f: &FunctionSpan) -> Self
fn from(f: &FunctionSpan) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FunctionSpan
impl PartialEq for FunctionSpan
Source§fn eq(&self, other: &FunctionSpan) -> bool
fn eq(&self, other: &FunctionSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FunctionSpan
impl Serialize for FunctionSpan
impl StructuralPartialEq for FunctionSpan
Auto Trait Implementations§
impl Freeze for FunctionSpan
impl RefUnwindSafe for FunctionSpan
impl Send for FunctionSpan
impl Sync for FunctionSpan
impl Unpin for FunctionSpan
impl UnsafeUnpin for FunctionSpan
impl UnwindSafe for FunctionSpan
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