pub struct Ops {
pub name: Option<String>,
pub name_was_lossy: bool,
pub start_line: usize,
pub end_line: usize,
pub kind: SpaceKind,
pub spaces: Vec<Ops>,
pub operands: Vec<String>,
pub operators: Vec<String>,
}Expand description
Wire form of crate::Ops — a recursive operator/operand tree.
Fields§
§name: Option<String>The name of the space (file path or AST-derived identifier).
name_was_lossy: boolWhether Ops::name was derived via lossy UTF-8 conversion.
start_line: usizeThe first line of the space.
end_line: usizeThe last line of the space.
kind: SpaceKindThe space kind.
spaces: Vec<Ops>All nested subspaces.
operands: Vec<String>The operands in the space.
operators: Vec<String>The operators in the space.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ops
impl<'de> Deserialize<'de> for Ops
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
impl StructuralPartialEq for Ops
Auto Trait Implementations§
impl Freeze for Ops
impl RefUnwindSafe for Ops
impl Send for Ops
impl Sync for Ops
impl Unpin for Ops
impl UnsafeUnpin for Ops
impl UnwindSafe for Ops
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