pub struct LinkerWriter<'a> { /* private fields */ }Implementations§
Source§impl<'a> LinkerWriter<'a>
impl<'a> LinkerWriter<'a>
pub fn new(d: &'a Document, rs: &'a RuntimeSettings) -> Self
pub fn new_reference_partial_objects( d: &'a Document, rs: &'a RuntimeSettings, ) -> Self
Source§impl LinkerWriter<'_>
impl LinkerWriter<'_>
pub fn export_linker_script( &self, dst: &mut impl Write, ) -> Result<(), SlinkyError>
Source§impl LinkerWriter<'_>
impl LinkerWriter<'_>
pub fn export_dependencies_file( &self, dst: &mut impl Write, target_path: &EscapedPath, ) -> Result<(), SlinkyError>
pub fn export_dependencies_file_to_file( &self, path: &EscapedPath, target_path: &EscapedPath, ) -> Result<(), SlinkyError>
pub fn export_dependencies_file_to_string( &self, target_path: &EscapedPath, ) -> Result<String, SlinkyError>
Source§impl LinkerWriter<'_>
impl LinkerWriter<'_>
pub fn export_symbol_header( &self, dst: &mut impl Write, ) -> Result<(), SlinkyError>
pub fn export_symbol_header_to_file( &self, path: &EscapedPath, ) -> Result<(), SlinkyError>
pub fn export_symbol_header_to_string(&self) -> Result<String, SlinkyError>
Source§impl LinkerWriter<'_>
impl LinkerWriter<'_>
pub fn get_linker_symbols(&self) -> &IndexSet<String>
pub fn set_emit_sections_kind_symbols(&mut self, value: bool)
pub fn get_emit_sections_kind_symbols(&mut self) -> bool
pub fn set_emit_section_symbols(&mut self, value: bool)
pub fn get_emit_section_symbols(&mut self) -> bool
Trait Implementations§
Source§impl ScriptExporter for LinkerWriter<'_>
impl ScriptExporter for LinkerWriter<'_>
fn export_linker_script_to_file( &self, path: &EscapedPath, ) -> Result<(), SlinkyError>
fn export_linker_script_to_string(&self) -> Result<String, SlinkyError>
fn save_other_files(&self) -> Result<(), SlinkyError>
Source§impl ScriptImporter for LinkerWriter<'_>
impl ScriptImporter for LinkerWriter<'_>
fn add_all_segments(&mut self, segments: &[Segment]) -> Result<(), SlinkyError>
fn add_entry(&mut self, entry: &str) -> Result<(), SlinkyError>
fn add_all_symbol_assignments( &mut self, symbol_assignments: &[SymbolAssignment], ) -> Result<(), SlinkyError>
fn add_all_required_symbols( &mut self, required_symbols: &[RequiredSymbol], ) -> Result<(), SlinkyError>
fn add_all_asserts( &mut self, asserts: &[AssertEntry], ) -> Result<(), SlinkyError>
fn add_whole_document(&mut self, document: &Document) -> Result<(), SlinkyError>
impl ScriptGenerator for LinkerWriter<'_>
Auto Trait Implementations§
impl<'a> Freeze for LinkerWriter<'a>
impl<'a> RefUnwindSafe for LinkerWriter<'a>
impl<'a> Send for LinkerWriter<'a>
impl<'a> Sync for LinkerWriter<'a>
impl<'a> Unpin for LinkerWriter<'a>
impl<'a> UnwindSafe for LinkerWriter<'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