pub struct FieldAccess {
pub name: String,
pub field: String,
}Fields§
§name: String§field: StringImplementations§
Source§impl FieldAccess
impl FieldAccess
pub fn new(name: String, field: String) -> Self
Sourcepub fn with_appended_field(&self, field_name: &str) -> FieldAccess
pub fn with_appended_field(&self, field_name: &str) -> FieldAccess
在已有 root.field 上再追加一段(嵌套 struct 绑定等运行时路径;name 中可含 .)。
Source§impl FieldAccess
impl FieldAccess
pub fn to_latex_string(&self) -> String
Trait Implementations§
Source§impl Clone for FieldAccess
impl Clone for FieldAccess
Source§fn clone(&self) -> FieldAccess
fn clone(&self) -> FieldAccess
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 Display for FieldAccess
impl Display for FieldAccess
Source§impl From<FieldAccess> for Atom
impl From<FieldAccess> for Atom
Source§fn from(f: FieldAccess) -> Self
fn from(f: FieldAccess) -> Self
Converts to this type from the input type.
Source§impl From<FieldAccess> for Obj
impl From<FieldAccess> for Obj
Source§fn from(f: FieldAccess) -> Self
fn from(f: FieldAccess) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FieldAccess
impl RefUnwindSafe for FieldAccess
impl Send for FieldAccess
impl Sync for FieldAccess
impl Unpin for FieldAccess
impl UnsafeUnpin for FieldAccess
impl UnwindSafe for FieldAccess
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