pub struct UcpClient { /* private fields */ }Expand description
UCP client for document manipulation
Implementations§
Source§impl UcpClient
impl UcpClient
Sourcepub fn create_document(&self) -> Document
pub fn create_document(&self) -> Document
Create a new document
Sourcepub fn execute_ucl(
&self,
doc: &mut Document,
ucl: &str,
) -> Result<Vec<OperationResult>>
pub fn execute_ucl( &self, doc: &mut Document, ucl: &str, ) -> Result<Vec<OperationResult>>
Execute UCL commands on a document
Sourcepub fn parse_ucl(&self, ucl: &str) -> Result<UclDocument>
pub fn parse_ucl(&self, ucl: &str) -> Result<UclDocument>
Parse a full UCL document
Sourcepub fn add_text(
&self,
doc: &mut Document,
parent: &BlockId,
text: &str,
role: Option<&str>,
) -> Result<BlockId>
pub fn add_text( &self, doc: &mut Document, parent: &BlockId, text: &str, role: Option<&str>, ) -> Result<BlockId>
Add a text block
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UcpClient
impl RefUnwindSafe for UcpClient
impl Send for UcpClient
impl Sync for UcpClient
impl Unpin for UcpClient
impl UnsafeUnpin for UcpClient
impl UnwindSafe for UcpClient
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