pub struct ObjectName<'a> {
pub signature: u32,
pub name: &'a BStr,
}
Expand description
S_OBJNAME
Fields§
§signature: u32
A robust signature that will change every time that the module will be compiled or different in any way. It should be at least a CRC32 based upon module name and contents.
name: &'a BStr
Full path of the object file.
Trait Implementations§
Source§impl<'a> Clone for ObjectName<'a>
impl<'a> Clone for ObjectName<'a>
Source§fn clone(&self) -> ObjectName<'a>
fn clone(&self) -> ObjectName<'a>
Returns a copy 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<'a> Debug for ObjectName<'a>
impl<'a> Debug for ObjectName<'a>
Source§impl<'a> Parse<'a> for ObjectName<'a>
impl<'a> Parse<'a> for ObjectName<'a>
Source§fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
Parses an instance of
Self
from a Parser
.
This allows the caller to detect which bytes were not consumed at the end of the input.Auto Trait Implementations§
impl<'a> Freeze for ObjectName<'a>
impl<'a> RefUnwindSafe for ObjectName<'a>
impl<'a> Send for ObjectName<'a>
impl<'a> Sync for ObjectName<'a>
impl<'a> Unpin for ObjectName<'a>
impl<'a> UnwindSafe for ObjectName<'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