pub struct FootprintDocument { /* private fields */ }Expand description
Owned standalone-footprint source with bounded read and write behavior.
Implementations§
Source§impl FootprintDocument
impl FootprintDocument
Sourcepub fn parse(source: String, limits: FootprintLimits) -> Result<Self, Error>
pub fn parse(source: String, limits: FootprintLimits) -> Result<Self, Error>
Validate and own one UTF-8 .kicad_mod source buffer.
Sourcepub fn from_reader(
reader: impl Read,
limits: FootprintLimits,
) -> Result<Self, Error>
pub fn from_reader( reader: impl Read, limits: FootprintLimits, ) -> Result<Self, Error>
Read at most the configured source ceiling plus one sentinel byte.
pub fn source(&self) -> &str
pub fn into_source(self) -> String
pub fn limits(&self) -> FootprintLimits
pub fn view(&self) -> Result<FootprintView<'_>, Error>
Trait Implementations§
Source§impl Clone for FootprintDocument
impl Clone for FootprintDocument
Source§fn clone(&self) -> FootprintDocument
fn clone(&self) -> FootprintDocument
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FootprintDocument
impl RefUnwindSafe for FootprintDocument
impl Send for FootprintDocument
impl Sync for FootprintDocument
impl Unpin for FootprintDocument
impl UnsafeUnpin for FootprintDocument
impl UnwindSafe for FootprintDocument
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