pub struct ExternalLocation { /* private fields */ }Expand description
An ExternalLocation is an association from a source symbol in a binary view
to a target symbol and/or address in an ExternalLibrary.
Implementations§
Source§impl ExternalLocation
impl ExternalLocation
Sourcepub fn source_symbol(&self) -> Ref<Symbol>
pub fn source_symbol(&self) -> Ref<Symbol>
Get the source symbol for this ExternalLocation
Sourcepub fn library(&self) -> Option<Ref<ExternalLibrary>>
pub fn library(&self) -> Option<Ref<ExternalLibrary>>
Get the ExternalLibrary that this ExternalLocation targets
Sourcepub fn set_external_library(&self, lib: Option<&ExternalLibrary>)
pub fn set_external_library(&self, lib: Option<&ExternalLibrary>)
Set the ExternalLibrary that this ExternalLocation targets
Sourcepub fn has_target_address(&self) -> bool
pub fn has_target_address(&self) -> bool
Check if this ExternalLocation has a target address
Sourcepub fn has_target_symbol(&self) -> bool
pub fn has_target_symbol(&self) -> bool
Check if this ExternalLocation has a target symbol
Sourcepub fn target_address(&self) -> Option<u64>
pub fn target_address(&self) -> Option<u64>
Get the address pointed to by this ExternalLocation, if any
Sourcepub fn set_target_address(&self, address: Option<u64>) -> bool
pub fn set_target_address(&self, address: Option<u64>) -> bool
Set the address pointed to by this ExternalLocation. ExternalLocations must have a valid target address and/or symbol set.
Sourcepub fn target_symbol(&self) -> Option<BnString>
pub fn target_symbol(&self) -> Option<BnString>
Get the symbol pointed to by this ExternalLocation, if any
Sourcepub fn set_target_symbol(&self, symbol: Option<&str>) -> bool
pub fn set_target_symbol(&self, symbol: Option<&str>) -> bool
Set the symbol pointed to by this ExternalLocation. ExternalLocations must have a valid target address and/or symbol set.
Trait Implementations§
Source§impl CoreArrayProvider for ExternalLocation
impl CoreArrayProvider for ExternalLocation
Source§impl Debug for ExternalLocation
impl Debug for ExternalLocation
Source§impl ToOwned for ExternalLocation
impl ToOwned for ExternalLocation
Source§type Owned = Ref<ExternalLocation>
type Owned = Ref<ExternalLocation>
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Auto Trait Implementations§
impl Freeze for ExternalLocation
impl RefUnwindSafe for ExternalLocation
impl !Send for ExternalLocation
impl !Sync for ExternalLocation
impl Unpin for ExternalLocation
impl UnwindSafe for ExternalLocation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more