You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/Theseus/kernel/uart_pl011/src
    
    the code of the file until where you have to start completion: //! Driver for pl011 UARTs

#![no_std]
use core::fmt;
use zerocopy::FromBytes;
use volatile::{Volatile, ReadOnly, WriteOnly};
use memory::{BorrowedMappedPages, Mutable, PhysicalAddress, PAGE_SIZE, map_frame_range, MMIO_FLAGS};

/// Struct representi
    
    pub fn new(base: PhysicalAddress) -> Result<Self, &'static str> {
        let mapped_pages = map_frame_range(base, PAGE_SIZE, MMIO_FLAGS)?;

        let mut this = Self {
            regs: mapped_pages.into_borrowed_mut(0).map_err(|(_, e)| e)?,
        };

        this.enable_rx_interrupt(true);
        this.set_fifo_mode(false);

        Ok(this)
    }