pub struct Field {
pub flags: Flags,
pub name: String,
pub deprecated: bool,
pub constant: Option<Constant>,
/* private fields */
}
Expand description
Java SE 7 § 4.5: field_info
Fields§
§flags: Flags
§name: String
§deprecated: bool
§constant: Option<Constant>
Implementations§
Source§impl Field
impl Field
pub fn new(flags: Flags, name: String, descriptor: String) -> Result<Self>
pub fn descriptor_str(&self) -> &str
pub fn descriptor(&self) -> Descriptor<'_>
pub fn is_public(&self) -> bool
pub fn is_private(&self) -> bool
pub fn is_protected(&self) -> bool
pub fn is_static(&self) -> bool
pub fn is_final(&self) -> bool
pub fn is_volatile(&self) -> bool
pub fn is_transient(&self) -> bool
pub fn is_synthetic(&self) -> bool
pub fn is_enum(&self) -> bool
pub fn is_constant(&self) -> bool
pub fn access(&self) -> Option<&'static str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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