#[repr(C)]pub struct Placeholder {
pub range: TextRange,
pub style: PlaceholderStyle,
pub text_style: TextStyle,
pub blocks_before: BlockRange,
pub text_before: TextRange,
}
Fields§
§range: TextRange
§style: PlaceholderStyle
§text_style: TextStyle
§blocks_before: BlockRange
§text_before: TextRange
Implementations§
Source§impl Placeholder
impl Placeholder
pub fn new( range: Range<usize>, style: PlaceholderStyle, text_style: TextStyle, blocks_before: BlockRange, text_before: TextRange, ) -> Self
Trait Implementations§
Source§impl Clone for Placeholder
impl Clone for Placeholder
Source§fn clone(&self) -> Placeholder
fn clone(&self) -> Placeholder
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 Placeholder
impl Debug for Placeholder
Source§impl Default for Placeholder
impl Default for Placeholder
Source§impl PartialEq for Placeholder
impl PartialEq for Placeholder
impl StructuralPartialEq for Placeholder
Auto Trait Implementations§
impl Freeze for Placeholder
impl !RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnwindSafe for Placeholder
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