pub struct ContainerField {
pub name: String,
pub span: Range<usize>,
}Expand description
A Zig container field.
Fields§
§name: StringName of the field.
span: Range<usize>Span of the field.
Trait Implementations§
Source§impl Clone for ContainerField
impl Clone for ContainerField
Source§fn clone(&self) -> ContainerField
fn clone(&self) -> ContainerField
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 ContainerField
impl Debug for ContainerField
Source§impl<'de> Deserialize<'de> for ContainerField
impl<'de> Deserialize<'de> for ContainerField
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 PartialEq for ContainerField
impl PartialEq for ContainerField
Source§impl Serialize for ContainerField
impl Serialize for ContainerField
impl StructuralPartialEq for ContainerField
Auto Trait Implementations§
impl Freeze for ContainerField
impl RefUnwindSafe for ContainerField
impl Send for ContainerField
impl Sync for ContainerField
impl Unpin for ContainerField
impl UnsafeUnpin for ContainerField
impl UnwindSafe for ContainerField
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