pub struct Companion {
pub id: String,
pub bytes: Vec<u8>,
}Expand description
A file that a Companions source opened.
Fields§
§id: StringThe identity of the file: equal for every path that names it, and the anchor of the paths that it names in turn.
bytes: Vec<u8>The content of the file.
Trait Implementations§
impl Eq for Companion
impl StructuralPartialEq for Companion
Auto Trait Implementations§
impl Freeze for Companion
impl RefUnwindSafe for Companion
impl Send for Companion
impl Sync for Companion
impl Unpin for Companion
impl UnsafeUnpin for Companion
impl UnwindSafe for Companion
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