pub struct CommentDraft { /* private fields */ }Implementations§
Source§impl CommentDraft
impl CommentDraft
pub const fn anchor(&self) -> &LineAnchor
pub fn line_text(&self) -> &str
pub fn body(&self) -> &str
pub const fn cursor(&self) -> usize
pub fn body_before_cursor(&self) -> &str
pub const fn editing(&self) -> Option<u64>
pub fn set_body(&mut self, body: impl Into<String>)
pub fn insert(&mut self, text: &str)
pub fn delete_before_cursor(&mut self)
pub fn delete_at_cursor(&mut self)
pub fn move_cursor_left(&mut self)
pub fn move_cursor_right(&mut self)
pub const fn move_cursor_to_start(&mut self)
pub fn move_cursor_to_end(&mut self)
Trait Implementations§
Source§impl Clone for CommentDraft
impl Clone for CommentDraft
Source§fn clone(&self) -> CommentDraft
fn clone(&self) -> CommentDraft
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 moreSource§impl Debug for CommentDraft
impl Debug for CommentDraft
impl Eq for CommentDraft
Source§impl PartialEq for CommentDraft
impl PartialEq for CommentDraft
impl StructuralPartialEq for CommentDraft
Auto Trait Implementations§
impl Freeze for CommentDraft
impl RefUnwindSafe for CommentDraft
impl Send for CommentDraft
impl Sync for CommentDraft
impl Unpin for CommentDraft
impl UnsafeUnpin for CommentDraft
impl UnwindSafe for CommentDraft
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