Expand description
Helpers for working with types from the [object] crate.
Re-exportsΒ§
use std::collections::BTreeSet;πuse std::os::unix::ffi::OsStrExt;πuse std::path::Path;πuse std::path::PathBuf;πuse bstr::BStr;πuse object;πuse object::Object;πuse object::ObjectSymbol;πuse object::Symbol;πuse crate::rfs;π
StructsΒ§
- Archive
File - A partially parsed archive file.
- BinFile
- Thin wrapper for owning data used by
object, which may be either an archive or a single object file.
EnumsΒ§
- Contains
AllSymbol Substrings Outcome - Contains
AllSymbols Outcome - ObjFile
- An object file that can be any supported file format.
FunctionsΒ§
- exported_
dynamic_ symbol_ names - Given an
object::File, find the exported dynamic symbol names via [object::Object::exports]. This does not distinguish between which section the symbols appear in. - object_
contains_ all_ symbol_ substring - Check an object fileβs symbols for presence of all of provided substrings. That is, if an
object file contains symbols
["hello", "goodbye", "world"], it will be matched against a list ofsubstringsof["he", "go"]. In this case,heis a substring ofhello, andgois a substring ofgoodbye, so each ofsubstringswas found. - object_
contains_ all_ symbols - Check an object file contains all symbols provided in
candidate_symbols. - object_
contains_ any_ symbol - Check an object fileβs symbols for any exact matches against those provided in
candidate_symbols. - object_
contains_ any_ symbol_ substring - Check an object fileβs symbols for any matching substrings. That is, if an object file
contains a symbol named
hello_world, it will be matched against a providedsubstringsof["hello", "bar"].
Type AliasesΒ§
- ObjResult
- The result type used within the read module.