Struct nu_protocol::Spanned
source · [−]Expand description
A spanned area of interest, generic over what kind of thing is of interest
Fields
item: T
span: Span
Trait Implementations
sourceimpl<'de, T> Deserialize<'de> for Spanned<T> where
T: Clone + Debug,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Spanned<T> where
T: Clone + Debug,
T: Deserialize<'de>,
sourcefn 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
sourceimpl From<Spanned<HashMap<String, Value, RandomState>>> for Value
impl From<Spanned<HashMap<String, Value, RandomState>>> for Value
Create a Value::Record from a spanned hashmap
sourceimpl From<Spanned<IndexMap<String, Value, RandomState>>> for Value
impl From<Spanned<IndexMap<String, Value, RandomState>>> for Value
Create a Value::Record from a spanned indexmap
sourceimpl FromValue for Spanned<i64>
impl FromValue for Spanned<i64>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<f64>
impl FromValue for Spanned<f64>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<usize>
impl FromValue for Spanned<usize>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<String>
impl FromValue for Spanned<String>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<bool>
impl FromValue for Spanned<bool>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<DateTime<FixedOffset>>
impl FromValue for Spanned<DateTime<FixedOffset>>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<Range>
impl FromValue for Spanned<Range>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<PathBuf>
impl FromValue for Spanned<PathBuf>
fn from_value(v: &Value) -> Result<Self, ShellError>
sourceimpl FromValue for Spanned<CaptureBlock>
impl FromValue for Spanned<CaptureBlock>
fn from_value(v: &Value) -> Result<Self, ShellError>
impl<T> StructuralPartialEq for Spanned<T> where
T: Clone + Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for Spanned<T> where
T: RefUnwindSafe,
impl<T> Send for Spanned<T> where
T: Send,
impl<T> Sync for Spanned<T> where
T: Sync,
impl<T> Unpin for Spanned<T> where
T: Unpin,
impl<T> UnwindSafe for Spanned<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more