Struct parser_database::SourceFile
source · pub struct SourceFile { /* private fields */ }
Expand description
A Prisma schema document.
Implementations§
source§impl SourceFile
impl SourceFile
pub fn new_static(content: &'static str) -> SourceFile
pub fn new_allocated(s: Arc<str>) -> SourceFile
pub fn as_str(&self) -> &str
Trait Implementations§
source§impl Clone for SourceFile
impl Clone for SourceFile
source§fn clone(&self) -> SourceFile
fn clone(&self) -> SourceFile
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceFile
impl Debug for SourceFile
source§impl From<&String> for SourceFile
impl From<&String> for SourceFile
source§fn from(s: &String) -> SourceFile
fn from(s: &String) -> SourceFile
Converts to this type from the input type.
source§impl From<&str> for SourceFile
impl From<&str> for SourceFile
source§fn from(s: &str) -> SourceFile
fn from(s: &str) -> SourceFile
Converts to this type from the input type.
source§impl From<String> for SourceFile
impl From<String> for SourceFile
source§fn from(s: String) -> SourceFile
fn from(s: String) -> SourceFile
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SourceFile
impl Send for SourceFile
impl Sync for SourceFile
impl Unpin for SourceFile
impl UnwindSafe for SourceFile
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