#[non_exhaustive]pub struct FieldRef<'a> {
pub class: &'a str,
pub name: &'a str,
pub ty: &'a str,
}Expand description
A field as Lowner;->name:Type. Every part borrows from the signature.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.class: &'a strThe declaring class descriptor.
name: &'a strThe field name.
ty: &'a strThe field’s type descriptor.
Implementations§
Trait Implementations§
impl<'a> Copy for FieldRef<'a>
impl<'a> Eq for FieldRef<'a>
Source§impl<'a> Ord for FieldRef<'a>
impl<'a> Ord for FieldRef<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'a> PartialOrd for FieldRef<'a>
impl<'a> PartialOrd for FieldRef<'a>
impl<'a> StructuralPartialEq for FieldRef<'a>
Auto Trait Implementations§
impl<'a> Forget for FieldRef<'a>
impl<'a> Freeze for FieldRef<'a>
impl<'a> Move for FieldRef<'a>
impl<'a> RefUnwindSafe for FieldRef<'a>
impl<'a> Send for FieldRef<'a>
impl<'a> Sync for FieldRef<'a>
impl<'a> Unpin for FieldRef<'a>
impl<'a> UnsafeUnpin for FieldRef<'a>
impl<'a> UnwindSafe for FieldRef<'a>
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